<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Ipopt: src/Common/IpCachedResults.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
  extensions: ["tex2jax.js"],
  jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 40px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Ipopt Documentation
   &#160;<!--span id="projectnumber">3.14.15</span-->
   </div>
  </td>
   <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('IpCachedResults_8hpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">IpCachedResults.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="IpCachedResults_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">// Copyright (C) 2004, 2011 International Business Machines and others.</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment">// All Rights Reserved.</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment">// This code is published under the Eclipse Public License.</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment">//</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment">// Authors:  Carl Laird, Andreas Waechter     IBM    2004-08-13</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#ifndef __IPCACHEDRESULTS_HPP__</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#define __IPCACHEDRESULTS_HPP__</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &quot;<a class="code" href="IpTaggedObject_8hpp.html">IpTaggedObject.hpp</a>&quot;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &quot;<a class="code" href="IpObserver_8hpp.html">IpObserver.hpp</a>&quot;</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &lt;algorithm&gt;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#include &lt;list&gt;</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceIpopt.html">Ipopt</a></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span>{</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#if IPOPT_CHECKLEVEL &gt; 2</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor"># define IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor"># include &quot;<a class="code" href="IpDebug_8hpp.html">IpDebug.hpp</a>&quot;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="comment">// Forward Declarations</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="keyword">class </span>DependentResult;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="comment">//  AW: I&#39;m taking this out, since this is by far the most used</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="comment">//  class.  We should keep it as simple as possible.</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span><span class="comment">//   /** Cache Priority Enum */</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="comment">//   enum CachePriority</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span><span class="comment">//   {</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="comment">//     CP_Lowest,</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span><span class="comment">//     CP_Standard,</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span><span class="comment">//     CP_Trial,</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span><span class="comment">//     CP_Iterate</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="comment">//   };</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00068" data-start="{" data-end="};">
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html">   68</a></span><span class="keyword">class </span><a class="code hl_class" href="classIpopt_1_1CachedResults.html">CachedResults</a></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>{</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>   <span class="keyword">static</span> <span class="keyword">const</span> <a class="code hl_typedef" href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Index</a> dbg_verbosity;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span> </div>
<div class="foldopen" id="foldopen00079" data-start="{" data-end="}">
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a95da391d00cebb8bd60fd9bafd1b301f">   79</a></span>   <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a95da391d00cebb8bd60fd9bafd1b301f">CachedResults</a>(</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>      <span class="keywordtype">int</span> max_cache_size </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span>   );</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span> </div>
<div class="foldopen" id="foldopen00084" data-start="{" data-end="}">
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#ab5e2f2a7463c31a5653e222c8cb463ef">   84</a></span>   <span class="keyword">virtual</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#ab5e2f2a7463c31a5653e222c8cb463ef">~CachedResults</a>();</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span> </div>
<div class="foldopen" id="foldopen00092" data-start="{" data-end="}">
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#afba0afd9676949945bbedfee4d777078">   92</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#afba0afd9676949945bbedfee4d777078">AddCachedResult</a>(</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>      <span class="keyword">const</span> T&amp;                                result,</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>      <span class="keyword">const</span> std::vector&lt;const TaggedObject*&gt;&amp; dependents,</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>      <span class="keyword">const</span> std::vector&lt;Number&gt;&amp;              scalar_dependents</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>   );</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span> </div>
<div class="foldopen" id="foldopen00102" data-start="{" data-end="}">
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a64fdbc021c61cc1aafb4f6895fe620fd">  102</a></span>   <span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a64fdbc021c61cc1aafb4f6895fe620fd">GetCachedResult</a>(</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>      T&amp;                                      retResult,</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>      <span class="keyword">const</span> std::vector&lt;const TaggedObject*&gt;&amp; dependents,</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>      <span class="keyword">const</span> std::vector&lt;Number&gt;&amp;              scalar_dependents</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno">  106</span>   ) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno">  107</span> </div>
<div class="foldopen" id="foldopen00109" data-start="{" data-end="}">
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a88113643817cd0d0082ec183821bf09d">  109</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a88113643817cd0d0082ec183821bf09d">AddCachedResult</a>(</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno">  110</span>      <span class="keyword">const</span> T&amp;                                result,</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>      <span class="keyword">const</span> std::vector&lt;const TaggedObject*&gt;&amp; dependents</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>   );</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span> </div>
<div class="foldopen" id="foldopen00115" data-start="{" data-end="}">
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a628f2f640edad55e12865df6033d5ee5">  115</a></span>   <span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a628f2f640edad55e12865df6033d5ee5">GetCachedResult</a>(</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span>      T&amp;                                      retResult,</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>      <span class="keyword">const</span> std::vector&lt;const TaggedObject*&gt;&amp; dependents</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>   ) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span> </div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno">  125</span> </div>
<div class="foldopen" id="foldopen00128" data-start="{" data-end="}">
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a36996b6361fa40dad91cc3b747648fc6">  128</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a36996b6361fa40dad91cc3b747648fc6">AddCachedResult1Dep</a>(</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>      <span class="keyword">const</span> T&amp;            result,</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* dependent1</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>   );</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span> </div>
<div class="foldopen" id="foldopen00136" data-start="{" data-end="}">
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a4ef188cd7f04c95003daa769d229cba6">  136</a></span>   <span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a4ef188cd7f04c95003daa769d229cba6">GetCachedResult1Dep</a>(</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno">  137</span>      T&amp;                  retResult,</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno">  138</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* dependent1</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span>   );</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span> </div>
<div class="foldopen" id="foldopen00144" data-start="{" data-end="}">
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a3435d925d46d468ecd8613e260ccdf03">  144</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a3435d925d46d468ecd8613e260ccdf03">AddCachedResult2Dep</a>(</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>      <span class="keyword">const</span> T&amp;            result,</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* dependent1,</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* dependent2</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span>   );</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span> </div>
<div class="foldopen" id="foldopen00153" data-start="{" data-end="}">
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a9d30bb9b9e169149399eb08e5f9c1093">  153</a></span>   <span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a9d30bb9b9e169149399eb08e5f9c1093">GetCachedResult2Dep</a>(</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno">  154</span>      T&amp;                  retResult,</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* dependent1,</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno">  156</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* dependent2</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno">  157</span>   );</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno">  158</span> </div>
<div class="foldopen" id="foldopen00162" data-start="{" data-end="}">
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#accf76263cb1c063a27ebe1241168dcda">  162</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#accf76263cb1c063a27ebe1241168dcda">AddCachedResult3Dep</a>(</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>      <span class="keyword">const</span> T&amp;            result,</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* dependent1,</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* dependent2,</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno">  166</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* dependent3</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno">  167</span>   );</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno">  168</span> </div>
<div class="foldopen" id="foldopen00172" data-start="{" data-end="}">
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a6d17879794ab26aa871710aa6e459c88">  172</a></span>   <span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a6d17879794ab26aa871710aa6e459c88">GetCachedResult3Dep</a>(</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno">  173</span>      T&amp;                  retResult,</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno">  174</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* dependent1,</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* dependent2,</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* dependent3</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno">  177</span>   );</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno">  178</span> </div>
<div class="foldopen" id="foldopen00181" data-start="{" data-end="}">
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#ade3ae40c720febaa2d66481c5a9da548">  181</a></span>   <span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#ade3ae40c720febaa2d66481c5a9da548">GetCachedResult1Dep</a>(</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno">  182</span>      T&amp;                  retResult,</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno">  183</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>&amp; dependent1</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno">  184</span>   )</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno">  185</span>   {</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno">  186</span>      <span class="keywordflow">return</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a4ef188cd7f04c95003daa769d229cba6">GetCachedResult1Dep</a>(retResult, &amp;dependent1);</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno">  187</span>   }</div>
</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span> </div>
<div class="foldopen" id="foldopen00189" data-start="{" data-end="}">
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a40be0bcca6bd2cad35c5e1865f96188f">  189</a></span>   <span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a40be0bcca6bd2cad35c5e1865f96188f">GetCachedResult2Dep</a>(</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span>      T&amp;                  retResult,</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno">  191</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>&amp; dependent1,</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno">  192</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>&amp; dependent2</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno">  193</span>   )</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno">  194</span>   {</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno">  195</span>      <span class="keywordflow">return</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a9d30bb9b9e169149399eb08e5f9c1093">GetCachedResult2Dep</a>(retResult, &amp;dependent1, &amp;dependent2);</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno">  196</span>   }</div>
</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno">  197</span> </div>
<div class="foldopen" id="foldopen00198" data-start="{" data-end="}">
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#ae9cc797fa9d398454c758079899eb863">  198</a></span>   <span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#ae9cc797fa9d398454c758079899eb863">GetCachedResult3Dep</a>(</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno">  199</span>      T&amp;                  retResult,</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno">  200</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>&amp; dependent1,</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>&amp; dependent2,</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>&amp; dependent3)</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span>   {</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno">  204</span>      <span class="keywordflow">return</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a6d17879794ab26aa871710aa6e459c88">GetCachedResult3Dep</a>(retResult, &amp;dependent1, &amp;dependent2, &amp;dependent3);</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno">  205</span>   }</div>
</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno">  206</span> </div>
<div class="foldopen" id="foldopen00207" data-start="{" data-end="}">
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#ab7d93e6bf4d2bf76f38391dbe766bdc9">  207</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#ab7d93e6bf4d2bf76f38391dbe766bdc9">AddCachedResult1Dep</a>(</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno">  208</span>      <span class="keyword">const</span> T&amp;            result,</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno">  209</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>&amp; dependent1</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno">  210</span>   )</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno">  211</span>   {</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno">  212</span>      <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a36996b6361fa40dad91cc3b747648fc6">AddCachedResult1Dep</a>(result, &amp;dependent1);</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno">  213</span>   }</div>
</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span> </div>
<div class="foldopen" id="foldopen00215" data-start="{" data-end="}">
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#af39887ebf63f7dd3d4d651179fb9d007">  215</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#af39887ebf63f7dd3d4d651179fb9d007">AddCachedResult2Dep</a>(</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span>      <span class="keyword">const</span> T&amp;            result,</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno">  217</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>&amp; dependent1,</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno">  218</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>&amp; dependent2</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno">  219</span>   )</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno">  220</span>   {</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno">  221</span>      <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a3435d925d46d468ecd8613e260ccdf03">AddCachedResult2Dep</a>(result, &amp;dependent1, &amp;dependent2);</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno">  222</span>   }</div>
</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno">  223</span> </div>
<div class="foldopen" id="foldopen00224" data-start="{" data-end="}">
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a6a0618748095bc4767ba008aebab1633">  224</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a6a0618748095bc4767ba008aebab1633">AddCachedResult3Dep</a>(</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno">  225</span>      <span class="keyword">const</span> T&amp;            result,</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno">  226</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>&amp; dependent1,</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno">  227</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>&amp; dependent2,</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno">  228</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>&amp; dependent3</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno">  229</span>   )</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno">  230</span>   {</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno">  231</span>      <a class="code hl_function" href="classIpopt_1_1CachedResults.html#accf76263cb1c063a27ebe1241168dcda">AddCachedResult3Dep</a>(result, &amp;dependent1, &amp;dependent2, &amp;dependent3);</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno">  232</span>   }</div>
</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno">  234</span> </div>
<div class="foldopen" id="foldopen00241" data-start="{" data-end="}">
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a4f5dbf98deb6438dd5cef7162600c3b5">  241</a></span>   <span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a4f5dbf98deb6438dd5cef7162600c3b5">InvalidateResult</a>(</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno">  242</span>      <span class="keyword">const</span> std::vector&lt;const TaggedObject*&gt;&amp; dependents,</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno">  243</span>      <span class="keyword">const</span> std::vector&lt;Number&gt;&amp;              scalar_dependents</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno">  244</span>   );</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno">  245</span> </div>
<div class="foldopen" id="foldopen00247" data-start="{" data-end="}">
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a1382321cb2355b6a06cf77ebf3dbd9c7">  247</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a1382321cb2355b6a06cf77ebf3dbd9c7">Clear</a>();</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno">  248</span> </div>
<div class="foldopen" id="foldopen00250" data-start="{" data-end="}">
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a9b91e184dc7a61d7b5f980fe3e427c47">  250</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a9b91e184dc7a61d7b5f980fe3e427c47">Clear</a>(</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno">  251</span>      <span class="keywordtype">int</span> max_cache_size</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno">  252</span>   );</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno">  253</span> </div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno">  254</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno">  265</span> </div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a02da3d9dba67c2c1393e127256a8ce75">  266</a></span>   <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a02da3d9dba67c2c1393e127256a8ce75">CachedResults</a>();</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno">  267</span> </div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a52bca50f280a276ec29d37263af06dc1">  269</a></span>   <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a52bca50f280a276ec29d37263af06dc1">CachedResults</a>(</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno">  270</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1CachedResults.html">CachedResults</a>&amp;</div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno">  271</span>   );</div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno">  272</span> </div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a094616862992ae284450b1feb074cfcc">  274</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a094616862992ae284450b1feb074cfcc">operator=</a>(</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno">  275</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1CachedResults.html">CachedResults</a>&amp;</div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno">  276</span>   );</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno">  278</span> </div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a910a723286635abe7907bde3ae5c6eb2">  280</a></span>   <span class="keywordtype">int</span> <a class="code hl_variable" href="classIpopt_1_1CachedResults.html#a910a723286635abe7907bde3ae5c6eb2">max_cache_size_</a>;</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno">  281</span> </div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a0ead55fd598e27c70f0b1c3a06e7cd06">  283</a></span>   <span class="keyword">mutable</span> std::list&lt;DependentResult&lt;T&gt;*&gt;* <a class="code hl_variable" href="classIpopt_1_1CachedResults.html#a0ead55fd598e27c70f0b1c3a06e7cd06">cached_results_</a>;</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno">  284</span> </div>
<div class="foldopen" id="foldopen00289" data-start="{" data-end="}">
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a6f65c53c87a03c3045d74fbdd1af57e5">  289</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a6f65c53c87a03c3045d74fbdd1af57e5">CleanupInvalidatedResults</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno">  290</span> </div>
<div class="foldopen" id="foldopen00292" data-start="{" data-end="}">
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a2bde127abd6894d6864cc48061c4d053">  292</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a2bde127abd6894d6864cc48061c4d053">DebugPrintCachedResults</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno">  293</span>};</div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno">  294</span> </div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno">  300</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00301" data-start="{" data-end="};">
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html">  301</a></span><span class="keyword">class </span><a class="code hl_class" href="classIpopt_1_1DependentResult.html">DependentResult</a>: <span class="keyword">public</span> <a class="code hl_class" href="classIpopt_1_1Observer.html">Observer</a></div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno">  302</span>{</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno">  304</span> </div>
<div class="line"><a id="l00305" name="l00305"></a><span class="lineno">  305</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00306" name="l00306"></a><span class="lineno">  306</span>   <span class="keyword">static</span> <span class="keyword">const</span> <a class="code hl_typedef" href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Index</a> dbg_verbosity;</div>
<div class="line"><a id="l00307" name="l00307"></a><span class="lineno">  307</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00308" name="l00308"></a><span class="lineno">  308</span> </div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno">  311</span> </div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno">  312</span>   <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">DependentResult</a>(</div>
<div class="line"><a id="l00313" name="l00313"></a><span class="lineno">  313</span>      <span class="keyword">const</span> T&amp;                                result,</div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno">  314</span>      <span class="keyword">const</span> std::vector&lt;const TaggedObject*&gt;&amp; dependents,</div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno">  315</span>      <span class="keyword">const</span> std::vector&lt;Number&gt;&amp;              scalar_dependents</div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno">  316</span>   );</div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno">  317</span> </div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno">  319</span>   <a class="code hl_function" href="classIpopt_1_1DependentResult.html#adf6edb2e718594abf0f0b72fde36e263">~DependentResult</a>();</div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno">  321</span> </div>
<div class="line"><a id="l00324" name="l00324"></a><span class="lineno">  324</span> </div>
<div class="line"><a id="l00325" name="l00325"></a><span class="lineno">  325</span>   <span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1DependentResult.html#ae10949b00ea6d500fa1287cc8b4822ee">IsStale</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00326" name="l00326"></a><span class="lineno">  326</span> </div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno">  328</span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a8289bd38cdc1588d3e49fc80441cc22e">Invalidate</a>();</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno">  329</span> </div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno">  331</span>   <span class="keyword">const</span> T&amp; <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1c443217396c7f2deafe4d94be51b389">GetResult</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno">  333</span> </div>
<div class="line"><a id="l00338" name="l00338"></a><span class="lineno">  338</span>   <span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1DependentResult.html#ab7f3a50d252a7e015083bfbc22e16de2">DependentsIdentical</a>(</div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno">  339</span>      <span class="keyword">const</span> std::vector&lt;const TaggedObject*&gt;&amp; dependents,</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno">  340</span>      <span class="keyword">const</span> std::vector&lt;Number&gt;&amp;              scalar_dependents</div>
<div class="line"><a id="l00341" name="l00341"></a><span class="lineno">  341</span>   ) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00342" name="l00342"></a><span class="lineno">  342</span> </div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno">  344</span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a180e1639146e0b12b5b715a7e29ccc97">DebugPrint</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno">  345</span> </div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno">  346</span><span class="keyword">protected</span>:</div>
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno">  356</span>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a7c214391027ab63ef7aa2aea7e013d6c">ReceiveNotification</a>(</div>
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno">  357</span>      <a class="code hl_enumeration" href="classIpopt_1_1Observer.html#a828a9e0833e87e84bef75d05bf0a99b8">NotifyType</a>     notify_type,</div>
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno">  358</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1Subject.html">Subject</a>* subject</div>
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno">  359</span>   );</div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno">  360</span> </div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno">  361</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno">  362</span> </div>
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno">  373</span> </div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">  374</a></span>   <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">DependentResult</a>();</div>
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno">  375</span> </div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#a375cc4740d1ebf06e9f4a69be848e7c2">  377</a></span>   <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a375cc4740d1ebf06e9f4a69be848e7c2">DependentResult</a>(</div>
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno">  378</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">DependentResult</a>&amp;</div>
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno">  379</span>   );</div>
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno">  380</span> </div>
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#af97c032881a14cfdcd3e27544b754198">  382</a></span>   <span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1DependentResult.html#af97c032881a14cfdcd3e27544b754198">operator=</a>(</div>
<div class="line"><a id="l00383" name="l00383"></a><span class="lineno">  383</span>      <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">DependentResult</a>&amp;</div>
<div class="line"><a id="l00384" name="l00384"></a><span class="lineno">  384</span>   );</div>
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno">  386</span> </div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#a65cb6be9d013f4427f511ed3fa530571">  392</a></span>   <span class="keywordtype">bool</span> <a class="code hl_variable" href="classIpopt_1_1DependentResult.html#a65cb6be9d013f4427f511ed3fa530571">stale_</a>;</div>
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#a4095cad07fe069984328506b30b3821c">  394</a></span>   <span class="keyword">const</span> T <a class="code hl_variable" href="classIpopt_1_1DependentResult.html#a4095cad07fe069984328506b30b3821c">result_</a>;</div>
<div class="line"><a id="l00396" name="l00396"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#a3996096057cb6ca687db56ff0a9cd778">  396</a></span>   std::vector&lt;TaggedObject::Tag&gt; <a class="code hl_variable" href="classIpopt_1_1DependentResult.html#a3996096057cb6ca687db56ff0a9cd778">dependent_tags_</a>;</div>
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#a6fc3b55909f5be70be2efcba2ed86be0">  398</a></span>   std::vector&lt;Number&gt; <a class="code hl_variable" href="classIpopt_1_1DependentResult.html#a6fc3b55909f5be70be2efcba2ed86be0">scalar_dependents_</a>;</div>
<div class="line"><a id="l00399" name="l00399"></a><span class="lineno">  399</span>};</div>
</div>
<div class="line"><a id="l00400" name="l00400"></a><span class="lineno">  400</span> </div>
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno">  401</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00402" name="l00402"></a><span class="lineno">  402</span><span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div>
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno">  403</span><span class="keyword">const</span> <a class="code hl_typedef" href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Index</a> <a class="code hl_class" href="classIpopt_1_1CachedResults.html">CachedResults&lt;T&gt;::dbg_verbosity</a> = 0;</div>
<div class="line"><a id="l00404" name="l00404"></a><span class="lineno">  404</span> </div>
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno">  405</span><span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;</div>
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno">  406</span><span class="keyword">const</span> <a class="code hl_typedef" href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Index</a> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">DependentResult&lt;T&gt;::dbg_verbosity</a> = 0;</div>
<div class="line"><a id="l00407" name="l00407"></a><span class="lineno">  407</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno">  408</span> </div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno">  409</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00410" data-start="{" data-end="}">
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#a69e6b8533f0f46f950265a890303a465">  410</a></span><a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">DependentResult&lt;T&gt;::DependentResult</a>(</div>
<div class="line"><a id="l00411" name="l00411"></a><span class="lineno">  411</span>   <span class="keyword">const</span> T&amp;                                result,</div>
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno">  412</span>   <span class="keyword">const</span> std::vector&lt;const TaggedObject*&gt;&amp; dependents,</div>
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno">  413</span>   <span class="keyword">const</span> std::vector&lt;Number&gt;&amp;              scalar_dependents</div>
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno">  414</span>)</div>
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno">  415</span>   : stale_(false),</div>
<div class="line"><a id="l00416" name="l00416"></a><span class="lineno">  416</span>     result_(result),</div>
<div class="line"><a id="l00417" name="l00417"></a><span class="lineno">  417</span>     dependent_tags_(dependents.size()),</div>
<div class="line"><a id="l00418" name="l00418"></a><span class="lineno">  418</span>     scalar_dependents_(scalar_dependents)</div>
<div class="line"><a id="l00419" name="l00419"></a><span class="lineno">  419</span>{</div>
<div class="line"><a id="l00420" name="l00420"></a><span class="lineno">  420</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno">  421</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;DependentResult&lt;T&gt;::DependentResult()&quot;</span>, dbg_verbosity);</div>
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno">  422</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno">  423</span> </div>
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno">  424</span>   <span class="keywordflow">for</span>( <a class="code hl_typedef" href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Index</a> i = 0; i &lt; (<a class="code hl_typedef" href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Index</a>) dependents.size(); ++i )</div>
<div class="line"><a id="l00425" name="l00425"></a><span class="lineno">  425</span>   {</div>
<div class="line"><a id="l00426" name="l00426"></a><span class="lineno">  426</span>      <span class="keywordflow">if</span>( dependents[i] )</div>
<div class="line"><a id="l00427" name="l00427"></a><span class="lineno">  427</span>      {</div>
<div class="line"><a id="l00428" name="l00428"></a><span class="lineno">  428</span>         <span class="comment">// Call the RequestAttach method of the Observer base class.</span></div>
<div class="line"><a id="l00429" name="l00429"></a><span class="lineno">  429</span>         <span class="comment">// This will add this dependent result in the Observer list</span></div>
<div class="line"><a id="l00430" name="l00430"></a><span class="lineno">  430</span>         <span class="comment">// for the Subject dependents[i].  As a consequence, the</span></div>
<div class="line"><a id="l00431" name="l00431"></a><span class="lineno">  431</span>         <span class="comment">// ReceiveNotification method of this DependentResult will be</span></div>
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno">  432</span>         <span class="comment">// called with notify_type=NT_Changed, whenever the</span></div>
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno">  433</span>         <span class="comment">// TaggedResult dependents[i] is changed (i.e. its HasChanged</span></div>
<div class="line"><a id="l00434" name="l00434"></a><span class="lineno">  434</span>         <span class="comment">// method is called).</span></div>
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno">  435</span>         <a class="code hl_function" href="classIpopt_1_1Observer.html#ad8a27925a917ba926d713ceaac3efd7d">RequestAttach</a>(<a class="code hl_enumvalue" href="classIpopt_1_1Observer.html#a828a9e0833e87e84bef75d05bf0a99b8a54af38bcdf18596ba847cbacd9232614">NT_Changed</a>, dependents[i]);</div>
<div class="line"><a id="l00436" name="l00436"></a><span class="lineno">  436</span>         <a class="code hl_variable" href="classIpopt_1_1DependentResult.html#a3996096057cb6ca687db56ff0a9cd778">dependent_tags_</a>[i] = dependents[i]-&gt;GetTag();</div>
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno">  437</span>      }</div>
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno">  438</span>      <span class="keywordflow">else</span></div>
<div class="line"><a id="l00439" name="l00439"></a><span class="lineno">  439</span>      {</div>
<div class="line"><a id="l00440" name="l00440"></a><span class="lineno">  440</span>         <a class="code hl_variable" href="classIpopt_1_1DependentResult.html#a3996096057cb6ca687db56ff0a9cd778">dependent_tags_</a>[i] = 0;</div>
<div class="line"><a id="l00441" name="l00441"></a><span class="lineno">  441</span>      }</div>
<div class="line"><a id="l00442" name="l00442"></a><span class="lineno">  442</span>   }</div>
<div class="line"><a id="l00443" name="l00443"></a><span class="lineno">  443</span>}</div>
</div>
<div class="line"><a id="l00444" name="l00444"></a><span class="lineno">  444</span> </div>
<div class="line"><a id="l00445" name="l00445"></a><span class="lineno">  445</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00446" data-start="{" data-end="}">
<div class="line"><a id="l00446" name="l00446"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#adf6edb2e718594abf0f0b72fde36e263">  446</a></span><a class="code hl_function" href="classIpopt_1_1DependentResult.html#adf6edb2e718594abf0f0b72fde36e263">DependentResult&lt;T&gt;::~DependentResult</a>()</div>
<div class="line"><a id="l00447" name="l00447"></a><span class="lineno">  447</span>{</div>
<div class="line"><a id="l00448" name="l00448"></a><span class="lineno">  448</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno">  449</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;DependentResult&lt;T&gt;::~DependentResult()&quot;</span>, dbg_verbosity);</div>
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno">  450</span>   <span class="comment">//DBG_ASSERT(stale_ == true);</span></div>
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno">  451</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno">  452</span>   <span class="comment">// Nothing to be done here, destructor</span></div>
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno">  453</span>   <span class="comment">// of T should sufficiently remove</span></div>
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno">  454</span>   <span class="comment">// any memory, etc.</span></div>
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno">  455</span>}</div>
</div>
<div class="line"><a id="l00456" name="l00456"></a><span class="lineno">  456</span> </div>
<div class="line"><a id="l00457" name="l00457"></a><span class="lineno">  457</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00458" data-start="{" data-end="}">
<div class="line"><a id="l00458" name="l00458"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#ae10949b00ea6d500fa1287cc8b4822ee">  458</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1DependentResult.html#ae10949b00ea6d500fa1287cc8b4822ee">DependentResult&lt;T&gt;::IsStale</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno">  459</span><span class="keyword"></span>{</div>
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno">  460</span>   <span class="keywordflow">return</span> stale_;</div>
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno">  461</span>}</div>
</div>
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno">  462</span> </div>
<div class="line"><a id="l00463" name="l00463"></a><span class="lineno">  463</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00464" data-start="{" data-end="}">
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#a8289bd38cdc1588d3e49fc80441cc22e">  464</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a8289bd38cdc1588d3e49fc80441cc22e">DependentResult&lt;T&gt;::Invalidate</a>()</div>
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno">  465</span>{</div>
<div class="line"><a id="l00466" name="l00466"></a><span class="lineno">  466</span>   stale_ = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno">  467</span>}</div>
</div>
<div class="line"><a id="l00468" name="l00468"></a><span class="lineno">  468</span> </div>
<div class="line"><a id="l00469" name="l00469"></a><span class="lineno">  469</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00470" data-start="{" data-end="}">
<div class="line"><a id="l00470" name="l00470"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#a7c214391027ab63ef7aa2aea7e013d6c">  470</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a7c214391027ab63ef7aa2aea7e013d6c">DependentResult&lt;T&gt;::ReceiveNotification</a>(</div>
<div class="line"><a id="l00471" name="l00471"></a><span class="lineno">  471</span>   <a class="code hl_enumeration" href="classIpopt_1_1Observer.html#a828a9e0833e87e84bef75d05bf0a99b8">NotifyType</a> notify_type,</div>
<div class="line"><a id="l00472" name="l00472"></a><span class="lineno">  472</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1Subject.html">Subject</a>* <span class="comment">/*subject*/</span></div>
<div class="line"><a id="l00473" name="l00473"></a><span class="lineno">  473</span>)</div>
<div class="line"><a id="l00474" name="l00474"></a><span class="lineno">  474</span>{</div>
<div class="line"><a id="l00475" name="l00475"></a><span class="lineno">  475</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00476" name="l00476"></a><span class="lineno">  476</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;DependentResult&lt;T&gt;::ReceiveNotification&quot;</span>, dbg_verbosity);</div>
<div class="line"><a id="l00477" name="l00477"></a><span class="lineno">  477</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno">  478</span> </div>
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno">  479</span>   <span class="keywordflow">if</span>( notify_type == NT_Changed || notify_type == NT_BeingDestroyed )</div>
<div class="line"><a id="l00480" name="l00480"></a><span class="lineno">  480</span>   {</div>
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno">  481</span>      stale_ = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno">  482</span>      <span class="comment">// technically, I could unregister the notifications here, but they</span></div>
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno">  483</span>      <span class="comment">// aren&#39;t really hurting anything</span></div>
<div class="line"><a id="l00484" name="l00484"></a><span class="lineno">  484</span>   }</div>
<div class="line"><a id="l00485" name="l00485"></a><span class="lineno">  485</span>}</div>
</div>
<div class="line"><a id="l00486" name="l00486"></a><span class="lineno">  486</span> </div>
<div class="line"><a id="l00487" name="l00487"></a><span class="lineno">  487</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00488" data-start="{" data-end="}">
<div class="line"><a id="l00488" name="l00488"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#ab7f3a50d252a7e015083bfbc22e16de2">  488</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1DependentResult.html#ab7f3a50d252a7e015083bfbc22e16de2">DependentResult&lt;T&gt;::DependentsIdentical</a>(</div>
<div class="line"><a id="l00489" name="l00489"></a><span class="lineno">  489</span>   <span class="keyword">const</span> std::vector&lt;const TaggedObject*&gt;&amp; dependents,</div>
<div class="line"><a id="l00490" name="l00490"></a><span class="lineno">  490</span>   <span class="keyword">const</span> std::vector&lt;Number&gt;&amp;              scalar_dependents</div>
<div class="line"><a id="l00491" name="l00491"></a><span class="lineno">  491</span>)<span class="keyword"> const</span></div>
<div class="line"><a id="l00492" name="l00492"></a><span class="lineno">  492</span><span class="keyword"></span>{</div>
<div class="line"><a id="l00493" name="l00493"></a><span class="lineno">  493</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00494" name="l00494"></a><span class="lineno">  494</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;DependentResult&lt;T&gt;::DependentsIdentical&quot;</span>, dbg_verbosity);</div>
<div class="line"><a id="l00495" name="l00495"></a><span class="lineno">  495</span>   <a class="code hl_define" href="IpDebug_8hpp.html#a346733cd6806024295f8c3564071d021">DBG_ASSERT</a>(stale_ == <span class="keyword">false</span>);</div>
<div class="line"><a id="l00496" name="l00496"></a><span class="lineno">  496</span>   <a class="code hl_define" href="IpDebug_8hpp.html#a346733cd6806024295f8c3564071d021">DBG_ASSERT</a>(dependents.size() == dependent_tags_.size());</div>
<div class="line"><a id="l00497" name="l00497"></a><span class="lineno">  497</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00498" name="l00498"></a><span class="lineno">  498</span> </div>
<div class="line"><a id="l00499" name="l00499"></a><span class="lineno">  499</span>   <span class="keywordtype">bool</span> retVal = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00500" name="l00500"></a><span class="lineno">  500</span> </div>
<div class="line"><a id="l00501" name="l00501"></a><span class="lineno">  501</span>   <span class="keywordflow">if</span>( dependents.size() != dependent_tags_.size() || scalar_dependents.size() != scalar_dependents_.size() )</div>
<div class="line"><a id="l00502" name="l00502"></a><span class="lineno">  502</span>   {</div>
<div class="line"><a id="l00503" name="l00503"></a><span class="lineno">  503</span>      retVal = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00504" name="l00504"></a><span class="lineno">  504</span>   }</div>
<div class="line"><a id="l00505" name="l00505"></a><span class="lineno">  505</span>   <span class="keywordflow">else</span></div>
<div class="line"><a id="l00506" name="l00506"></a><span class="lineno">  506</span>   {</div>
<div class="line"><a id="l00507" name="l00507"></a><span class="lineno">  507</span>      <span class="keywordflow">for</span>( <a class="code hl_typedef" href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Index</a> i = 0; i &lt; (<a class="code hl_typedef" href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Index</a>) dependents.size(); i++ )</div>
<div class="line"><a id="l00508" name="l00508"></a><span class="lineno">  508</span>      {</div>
<div class="line"><a id="l00509" name="l00509"></a><span class="lineno">  509</span>         <span class="keywordflow">if</span>( ( dependents[i] &amp;&amp; dependents[i]-&gt;GetTag() != dependent_tags_[i])</div>
<div class="line"><a id="l00510" name="l00510"></a><span class="lineno">  510</span>             || (!dependents[i] &amp;&amp; dependent_tags_[i] != 0) )</div>
<div class="line"><a id="l00511" name="l00511"></a><span class="lineno">  511</span>         {</div>
<div class="line"><a id="l00512" name="l00512"></a><span class="lineno">  512</span>            retVal = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00513" name="l00513"></a><span class="lineno">  513</span>            <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00514" name="l00514"></a><span class="lineno">  514</span>         }</div>
<div class="line"><a id="l00515" name="l00515"></a><span class="lineno">  515</span>      }</div>
<div class="line"><a id="l00516" name="l00516"></a><span class="lineno">  516</span>      <span class="keywordflow">if</span>( retVal )</div>
<div class="line"><a id="l00517" name="l00517"></a><span class="lineno">  517</span>         <span class="keywordflow">for</span>( <a class="code hl_typedef" href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Index</a> i = 0; i &lt; (<a class="code hl_typedef" href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Index</a>) scalar_dependents.size(); i++ )</div>
<div class="line"><a id="l00518" name="l00518"></a><span class="lineno">  518</span>            <span class="keywordflow">if</span>( scalar_dependents[i] != scalar_dependents_[i] )</div>
<div class="line"><a id="l00519" name="l00519"></a><span class="lineno">  519</span>            {</div>
<div class="line"><a id="l00520" name="l00520"></a><span class="lineno">  520</span>               retVal = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00521" name="l00521"></a><span class="lineno">  521</span>               <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00522" name="l00522"></a><span class="lineno">  522</span>            }</div>
<div class="line"><a id="l00523" name="l00523"></a><span class="lineno">  523</span>   }</div>
<div class="line"><a id="l00524" name="l00524"></a><span class="lineno">  524</span> </div>
<div class="line"><a id="l00525" name="l00525"></a><span class="lineno">  525</span>   <span class="keywordflow">return</span> retVal;</div>
<div class="line"><a id="l00526" name="l00526"></a><span class="lineno">  526</span>}</div>
</div>
<div class="line"><a id="l00527" name="l00527"></a><span class="lineno">  527</span> </div>
<div class="line"><a id="l00528" name="l00528"></a><span class="lineno">  528</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00529" data-start="{" data-end="}">
<div class="line"><a id="l00529" name="l00529"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#a1c443217396c7f2deafe4d94be51b389">  529</a></span><span class="keyword">const</span> T&amp; <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1c443217396c7f2deafe4d94be51b389">DependentResult&lt;T&gt;::GetResult</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00530" name="l00530"></a><span class="lineno">  530</span><span class="keyword"></span>{</div>
<div class="line"><a id="l00531" name="l00531"></a><span class="lineno">  531</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00532" name="l00532"></a><span class="lineno">  532</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;DependentResult&lt;T&gt;::GetResult()&quot;</span>, dbg_verbosity);</div>
<div class="line"><a id="l00533" name="l00533"></a><span class="lineno">  533</span>   <a class="code hl_define" href="IpDebug_8hpp.html#a346733cd6806024295f8c3564071d021">DBG_ASSERT</a>(stale_ == <span class="keyword">false</span>);</div>
<div class="line"><a id="l00534" name="l00534"></a><span class="lineno">  534</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00535" name="l00535"></a><span class="lineno">  535</span> </div>
<div class="line"><a id="l00536" name="l00536"></a><span class="lineno">  536</span>   <span class="keywordflow">return</span> result_;</div>
<div class="line"><a id="l00537" name="l00537"></a><span class="lineno">  537</span>}</div>
</div>
<div class="line"><a id="l00538" name="l00538"></a><span class="lineno">  538</span> </div>
<div class="line"><a id="l00539" name="l00539"></a><span class="lineno">  539</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00540" data-start="{" data-end="}">
<div class="line"><a id="l00540" name="l00540"></a><span class="lineno"><a class="line" href="classIpopt_1_1DependentResult.html#a180e1639146e0b12b5b715a7e29ccc97">  540</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a180e1639146e0b12b5b715a7e29ccc97">DependentResult&lt;T&gt;::DebugPrint</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00541" name="l00541"></a><span class="lineno">  541</span><span class="keyword"></span>{</div>
<div class="line"><a id="l00542" name="l00542"></a><span class="lineno">  542</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00543" name="l00543"></a><span class="lineno">  543</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;DependentResult&lt;T&gt;::DebugPrint&quot;</span>, dbg_verbosity);</div>
<div class="line"><a id="l00544" name="l00544"></a><span class="lineno">  544</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00545" name="l00545"></a><span class="lineno">  545</span> </div>
<div class="line"><a id="l00546" name="l00546"></a><span class="lineno">  546</span>}</div>
</div>
<div class="line"><a id="l00547" name="l00547"></a><span class="lineno">  547</span> </div>
<div class="line"><a id="l00548" name="l00548"></a><span class="lineno">  548</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00549" data-start="{" data-end="}">
<div class="line"><a id="l00549" name="l00549"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a95da391d00cebb8bd60fd9bafd1b301f">  549</a></span><a class="code hl_function" href="classIpopt_1_1CachedResults.html#a02da3d9dba67c2c1393e127256a8ce75">CachedResults&lt;T&gt;::CachedResults</a>(</div>
<div class="line"><a id="l00550" name="l00550"></a><span class="lineno">  550</span>   <span class="keywordtype">int</span> max_cache_size</div>
<div class="line"><a id="l00551" name="l00551"></a><span class="lineno">  551</span>)</div>
<div class="line"><a id="l00552" name="l00552"></a><span class="lineno">  552</span>   : max_cache_size_(max_cache_size),</div>
<div class="line"><a id="l00553" name="l00553"></a><span class="lineno">  553</span>     cached_results_(NULL)</div>
<div class="line"><a id="l00554" name="l00554"></a><span class="lineno">  554</span>{</div>
<div class="line"><a id="l00555" name="l00555"></a><span class="lineno">  555</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00556" name="l00556"></a><span class="lineno">  556</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;CachedResults&lt;T&gt;::CachedResults&quot;</span>, dbg_verbosity);</div>
<div class="line"><a id="l00557" name="l00557"></a><span class="lineno">  557</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00558" name="l00558"></a><span class="lineno">  558</span> </div>
<div class="line"><a id="l00559" name="l00559"></a><span class="lineno">  559</span>}</div>
</div>
<div class="line"><a id="l00560" name="l00560"></a><span class="lineno">  560</span> </div>
<div class="line"><a id="l00561" name="l00561"></a><span class="lineno">  561</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00562" data-start="{" data-end="}">
<div class="line"><a id="l00562" name="l00562"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#ab5e2f2a7463c31a5653e222c8cb463ef">  562</a></span><a class="code hl_function" href="classIpopt_1_1CachedResults.html#ab5e2f2a7463c31a5653e222c8cb463ef">CachedResults&lt;T&gt;::~CachedResults</a>()</div>
<div class="line"><a id="l00563" name="l00563"></a><span class="lineno">  563</span>{</div>
<div class="line"><a id="l00564" name="l00564"></a><span class="lineno">  564</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00565" name="l00565"></a><span class="lineno">  565</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;CachedResults&lt;T&gt;::!CachedResults()&quot;</span>, dbg_verbosity);</div>
<div class="line"><a id="l00566" name="l00566"></a><span class="lineno">  566</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00567" name="l00567"></a><span class="lineno">  567</span> </div>
<div class="line"><a id="l00568" name="l00568"></a><span class="lineno">  568</span>   <span class="keywordflow">if</span>( cached_results_ )</div>
<div class="line"><a id="l00569" name="l00569"></a><span class="lineno">  569</span>   {</div>
<div class="line"><a id="l00570" name="l00570"></a><span class="lineno">  570</span>      <span class="keywordflow">for</span>( <span class="keyword">typename</span> std::list&lt;<a class="code hl_class" href="classIpopt_1_1DependentResult.html">DependentResult&lt;T&gt;</a>*&gt;::iterator iter = cached_results_-&gt;begin(); iter != cached_results_-&gt;end(); ++iter )</div>
<div class="line"><a id="l00571" name="l00571"></a><span class="lineno">  571</span>      {</div>
<div class="line"><a id="l00572" name="l00572"></a><span class="lineno">  572</span>         <span class="keyword">delete</span> *iter;</div>
<div class="line"><a id="l00573" name="l00573"></a><span class="lineno">  573</span>      }</div>
<div class="line"><a id="l00574" name="l00574"></a><span class="lineno">  574</span> </div>
<div class="line"><a id="l00575" name="l00575"></a><span class="lineno">  575</span>      <span class="keyword">delete</span> cached_results_;</div>
<div class="line"><a id="l00576" name="l00576"></a><span class="lineno">  576</span>   }</div>
<div class="line"><a id="l00577" name="l00577"></a><span class="lineno">  577</span>   <span class="comment">/*</span></div>
<div class="line"><a id="l00578" name="l00578"></a><span class="lineno">  578</span><span class="comment">    while (!cached_results_.empty()) {</span></div>
<div class="line"><a id="l00579" name="l00579"></a><span class="lineno">  579</span><span class="comment">    DependentResult&lt;T&gt;* result = cached_results_.back();</span></div>
<div class="line"><a id="l00580" name="l00580"></a><span class="lineno">  580</span><span class="comment">    cached_results_.pop_back();</span></div>
<div class="line"><a id="l00581" name="l00581"></a><span class="lineno">  581</span><span class="comment">    delete result;</span></div>
<div class="line"><a id="l00582" name="l00582"></a><span class="lineno">  582</span><span class="comment">    }</span></div>
<div class="line"><a id="l00583" name="l00583"></a><span class="lineno">  583</span><span class="comment">    */</span></div>
<div class="line"><a id="l00584" name="l00584"></a><span class="lineno">  584</span>}</div>
</div>
<div class="line"><a id="l00585" name="l00585"></a><span class="lineno">  585</span> </div>
<div class="line"><a id="l00586" name="l00586"></a><span class="lineno">  586</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00587" data-start="{" data-end="}">
<div class="line"><a id="l00587" name="l00587"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#afba0afd9676949945bbedfee4d777078">  587</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#afba0afd9676949945bbedfee4d777078">CachedResults&lt;T&gt;::AddCachedResult</a>(</div>
<div class="line"><a id="l00588" name="l00588"></a><span class="lineno">  588</span>   <span class="keyword">const</span> T&amp;                                result,</div>
<div class="line"><a id="l00589" name="l00589"></a><span class="lineno">  589</span>   <span class="keyword">const</span> std::vector&lt;const TaggedObject*&gt;&amp; dependents,</div>
<div class="line"><a id="l00590" name="l00590"></a><span class="lineno">  590</span>   <span class="keyword">const</span> std::vector&lt;Number&gt;&amp;              scalar_dependents</div>
<div class="line"><a id="l00591" name="l00591"></a><span class="lineno">  591</span>)</div>
<div class="line"><a id="l00592" name="l00592"></a><span class="lineno">  592</span>{</div>
<div class="line"><a id="l00593" name="l00593"></a><span class="lineno">  593</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00594" name="l00594"></a><span class="lineno">  594</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;CachedResults&lt;T&gt;::AddCachedResult&quot;</span>, dbg_verbosity);</div>
<div class="line"><a id="l00595" name="l00595"></a><span class="lineno">  595</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00596" name="l00596"></a><span class="lineno">  596</span> </div>
<div class="line"><a id="l00597" name="l00597"></a><span class="lineno">  597</span>   CleanupInvalidatedResults();</div>
<div class="line"><a id="l00598" name="l00598"></a><span class="lineno">  598</span> </div>
<div class="line"><a id="l00599" name="l00599"></a><span class="lineno">  599</span>   <span class="comment">// insert the new one here</span></div>
<div class="line"><a id="l00600" name="l00600"></a><span class="lineno">  600</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">DependentResult&lt;T&gt;</a>* newResult = <span class="keyword">new</span> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">DependentResult&lt;T&gt;</a>(<a class="code hl_class" href="classIpopt_1_1DependentResult.html">result</a>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">scalar_dependents</a>);</div>
<div class="line"><a id="l00601" name="l00601"></a><span class="lineno">  601</span>   <span class="keywordflow">if</span>( !cached_results_ )</div>
<div class="line"><a id="l00602" name="l00602"></a><span class="lineno">  602</span>   {</div>
<div class="line"><a id="l00603" name="l00603"></a><span class="lineno">  603</span>      cached_results_ = <span class="keyword">new</span> std::list&lt;DependentResult&lt;T&gt;*&gt;;</div>
<div class="line"><a id="l00604" name="l00604"></a><span class="lineno">  604</span>   }</div>
<div class="line"><a id="l00605" name="l00605"></a><span class="lineno">  605</span> </div>
<div class="line"><a id="l00606" name="l00606"></a><span class="lineno">  606</span>   cached_results_-&gt;push_front(<a class="code hl_class" href="classIpopt_1_1DependentResult.html">newResult</a>);</div>
<div class="line"><a id="l00607" name="l00607"></a><span class="lineno">  607</span> </div>
<div class="line"><a id="l00608" name="l00608"></a><span class="lineno">  608</span>   <span class="comment">// keep the list small enough</span></div>
<div class="line"><a id="l00609" name="l00609"></a><span class="lineno">  609</span>   <span class="keywordflow">if</span>( max_cache_size_ &gt;= 0 )</div>
<div class="line"><a id="l00610" name="l00610"></a><span class="lineno">  610</span>   {</div>
<div class="line"><a id="l00611" name="l00611"></a><span class="lineno">  611</span>      <span class="comment">// if negative, allow infinite cache</span></div>
<div class="line"><a id="l00612" name="l00612"></a><span class="lineno">  612</span>      <span class="comment">// non-negative - limit size of list to max_cache_size</span></div>
<div class="line"><a id="l00613" name="l00613"></a><span class="lineno">  613</span>      <a class="code hl_define" href="IpDebug_8hpp.html#a346733cd6806024295f8c3564071d021">DBG_ASSERT</a>(cached_results_-&gt;size() &lt;= (<span class="keywordtype">size_t</span>)max_cache_size_ + 1);</div>
<div class="line"><a id="l00614" name="l00614"></a><span class="lineno">  614</span>      <span class="keywordflow">if</span>( cached_results_-&gt;size() &gt; (<span class="keywordtype">size_t</span>)max_cache_size_ )</div>
<div class="line"><a id="l00615" name="l00615"></a><span class="lineno">  615</span>      {</div>
<div class="line"><a id="l00616" name="l00616"></a><span class="lineno">  616</span>         <span class="keyword">delete</span> cached_results_-&gt;back();</div>
<div class="line"><a id="l00617" name="l00617"></a><span class="lineno">  617</span>         cached_results_-&gt;pop_back();</div>
<div class="line"><a id="l00618" name="l00618"></a><span class="lineno">  618</span>      }</div>
<div class="line"><a id="l00619" name="l00619"></a><span class="lineno">  619</span>   }</div>
<div class="line"><a id="l00620" name="l00620"></a><span class="lineno">  620</span> </div>
<div class="line"><a id="l00621" name="l00621"></a><span class="lineno">  621</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00622" name="l00622"></a><span class="lineno">  622</span>   <a class="code hl_define" href="IpDebug_8hpp.html#adf5c12b1092ddcaa2e6676e91b6afcc1">DBG_EXEC</a>(2, DebugPrintCachedResults());</div>
<div class="line"><a id="l00623" name="l00623"></a><span class="lineno">  623</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00624" name="l00624"></a><span class="lineno">  624</span> </div>
<div class="line"><a id="l00625" name="l00625"></a><span class="lineno">  625</span>}</div>
</div>
<div class="line"><a id="l00626" name="l00626"></a><span class="lineno">  626</span> </div>
<div class="line"><a id="l00627" name="l00627"></a><span class="lineno">  627</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00628" data-start="{" data-end="}">
<div class="line"><a id="l00628" name="l00628"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a88113643817cd0d0082ec183821bf09d">  628</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#afba0afd9676949945bbedfee4d777078">CachedResults&lt;T&gt;::AddCachedResult</a>(</div>
<div class="line"><a id="l00629" name="l00629"></a><span class="lineno">  629</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">T</a>&amp;                                <a class="code hl_class" href="classIpopt_1_1DependentResult.html">result</a>,</div>
<div class="line"><a id="l00630" name="l00630"></a><span class="lineno">  630</span>   <span class="keyword">const</span> std::vector&lt;const TaggedObject*&gt;&amp; <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a></div>
<div class="line"><a id="l00631" name="l00631"></a><span class="lineno">  631</span>)</div>
<div class="line"><a id="l00632" name="l00632"></a><span class="lineno">  632</span>{</div>
<div class="line"><a id="l00633" name="l00633"></a><span class="lineno">  633</span>   std::vector&lt;Number&gt; <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">scalar_dependents</a>;</div>
<div class="line"><a id="l00634" name="l00634"></a><span class="lineno">  634</span>   AddCachedResult(<a class="code hl_class" href="classIpopt_1_1DependentResult.html">result</a>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">scalar_dependents</a>);</div>
<div class="line"><a id="l00635" name="l00635"></a><span class="lineno">  635</span>}</div>
</div>
<div class="line"><a id="l00636" name="l00636"></a><span class="lineno">  636</span> </div>
<div class="line"><a id="l00637" name="l00637"></a><span class="lineno">  637</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00638" data-start="{" data-end="}">
<div class="line"><a id="l00638" name="l00638"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a64fdbc021c61cc1aafb4f6895fe620fd">  638</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a64fdbc021c61cc1aafb4f6895fe620fd">CachedResults&lt;T&gt;::GetCachedResult</a>(</div>
<div class="line"><a id="l00639" name="l00639"></a><span class="lineno">  639</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">T</a>&amp;                                      <a class="code hl_class" href="classIpopt_1_1DependentResult.html">retResult</a>,</div>
<div class="line"><a id="l00640" name="l00640"></a><span class="lineno">  640</span>   <span class="keyword">const</span> std::vector&lt;const TaggedObject*&gt;&amp; <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>,</div>
<div class="line"><a id="l00641" name="l00641"></a><span class="lineno">  641</span>   <span class="keyword">const</span> std::vector&lt;Number&gt;&amp;              <a class="code hl_class" href="classIpopt_1_1DependentResult.html">scalar_dependents</a></div>
<div class="line"><a id="l00642" name="l00642"></a><span class="lineno">  642</span>)<span class="keyword"> const</span></div>
<div class="line"><a id="l00643" name="l00643"></a><span class="lineno">  643</span><span class="keyword"></span>{</div>
<div class="line"><a id="l00644" name="l00644"></a><span class="lineno">  644</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00645" name="l00645"></a><span class="lineno">  645</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;CachedResults&lt;T&gt;::GetCachedResult&quot;</span>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dbg_verbosity</a>);</div>
<div class="line"><a id="l00646" name="l00646"></a><span class="lineno">  646</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00647" name="l00647"></a><span class="lineno">  647</span> </div>
<div class="line"><a id="l00648" name="l00648"></a><span class="lineno">  648</span>   <span class="keywordflow">if</span>( !cached_results_ )</div>
<div class="line"><a id="l00649" name="l00649"></a><span class="lineno">  649</span>   {</div>
<div class="line"><a id="l00650" name="l00650"></a><span class="lineno">  650</span>      <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00651" name="l00651"></a><span class="lineno">  651</span>   }</div>
<div class="line"><a id="l00652" name="l00652"></a><span class="lineno">  652</span> </div>
<div class="line"><a id="l00653" name="l00653"></a><span class="lineno">  653</span>   CleanupInvalidatedResults();</div>
<div class="line"><a id="l00654" name="l00654"></a><span class="lineno">  654</span> </div>
<div class="line"><a id="l00655" name="l00655"></a><span class="lineno">  655</span>   <span class="keywordtype">bool</span> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">retValue</a> = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00656" name="l00656"></a><span class="lineno">  656</span>   <span class="keywordflow">for</span>( <span class="keyword">typename</span> std::list&lt;<a class="code hl_class" href="classIpopt_1_1DependentResult.html">DependentResult&lt;T&gt;</a>*&gt;<a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">::const_iterator</a> iter = cached_results_-&gt;begin(); iter != cached_results_-&gt;end(); ++iter )</div>
<div class="line"><a id="l00657" name="l00657"></a><span class="lineno">  657</span>      <span class="keywordflow">if</span>( (*iter)-&gt;DependentsIdentical(<a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">scalar_dependents</a>) )</div>
<div class="line"><a id="l00658" name="l00658"></a><span class="lineno">  658</span>      {</div>
<div class="line"><a id="l00659" name="l00659"></a><span class="lineno">  659</span>         <a class="code hl_class" href="classIpopt_1_1DependentResult.html">retResult</a> = (*iter)-&gt;<a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1c443217396c7f2deafe4d94be51b389">GetResult</a>();</div>
<div class="line"><a id="l00660" name="l00660"></a><span class="lineno">  660</span>         <a class="code hl_class" href="classIpopt_1_1DependentResult.html">retValue</a> = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00661" name="l00661"></a><span class="lineno">  661</span>         <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00662" name="l00662"></a><span class="lineno">  662</span>      }</div>
<div class="line"><a id="l00663" name="l00663"></a><span class="lineno">  663</span> </div>
<div class="line"><a id="l00664" name="l00664"></a><span class="lineno">  664</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00665" name="l00665"></a><span class="lineno">  665</span>   <a class="code hl_define" href="IpDebug_8hpp.html#adf5c12b1092ddcaa2e6676e91b6afcc1">DBG_EXEC</a>(2, DebugPrintCachedResults());</div>
<div class="line"><a id="l00666" name="l00666"></a><span class="lineno">  666</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00667" name="l00667"></a><span class="lineno">  667</span> </div>
<div class="line"><a id="l00668" name="l00668"></a><span class="lineno">  668</span>   <span class="keywordflow">return</span> <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">retValue</a>;</div>
<div class="line"><a id="l00669" name="l00669"></a><span class="lineno">  669</span>}</div>
</div>
<div class="line"><a id="l00670" name="l00670"></a><span class="lineno">  670</span> </div>
<div class="line"><a id="l00671" name="l00671"></a><span class="lineno">  671</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00672" data-start="{" data-end="}">
<div class="line"><a id="l00672" name="l00672"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a628f2f640edad55e12865df6033d5ee5">  672</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a64fdbc021c61cc1aafb4f6895fe620fd">CachedResults&lt;T&gt;::GetCachedResult</a>(</div>
<div class="line"><a id="l00673" name="l00673"></a><span class="lineno">  673</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">T</a>&amp;                                      <a class="code hl_class" href="classIpopt_1_1DependentResult.html">retResult</a>,</div>
<div class="line"><a id="l00674" name="l00674"></a><span class="lineno">  674</span>   <span class="keyword">const</span> std::vector&lt;const TaggedObject*&gt;&amp; <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a></div>
<div class="line"><a id="l00675" name="l00675"></a><span class="lineno">  675</span>)<span class="keyword"> const</span></div>
<div class="line"><a id="l00676" name="l00676"></a><span class="lineno">  676</span><span class="keyword"></span>{</div>
<div class="line"><a id="l00677" name="l00677"></a><span class="lineno">  677</span>   std::vector&lt;Number&gt; <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">scalar_dependents</a>;</div>
<div class="line"><a id="l00678" name="l00678"></a><span class="lineno">  678</span>   <span class="keywordflow">return</span> GetCachedResult(<a class="code hl_class" href="classIpopt_1_1DependentResult.html">retResult</a>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">scalar_dependents</a>);</div>
<div class="line"><a id="l00679" name="l00679"></a><span class="lineno">  679</span>}</div>
</div>
<div class="line"><a id="l00680" name="l00680"></a><span class="lineno">  680</span> </div>
<div class="line"><a id="l00681" name="l00681"></a><span class="lineno">  681</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00682" data-start="{" data-end="}">
<div class="line"><a id="l00682" name="l00682"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a36996b6361fa40dad91cc3b747648fc6">  682</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a36996b6361fa40dad91cc3b747648fc6">CachedResults&lt;T&gt;::AddCachedResult1Dep</a>(</div>
<div class="line"><a id="l00683" name="l00683"></a><span class="lineno">  683</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">T</a>&amp;            <a class="code hl_class" href="classIpopt_1_1DependentResult.html">result</a>,</div>
<div class="line"><a id="l00684" name="l00684"></a><span class="lineno">  684</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependent1</a></div>
<div class="line"><a id="l00685" name="l00685"></a><span class="lineno">  685</span>)</div>
<div class="line"><a id="l00686" name="l00686"></a><span class="lineno">  686</span>{</div>
<div class="line"><a id="l00687" name="l00687"></a><span class="lineno">  687</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00688" name="l00688"></a><span class="lineno">  688</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;CachedResults&lt;T&gt;::AddCachedResult1Dep&quot;</span>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dbg_verbosity</a>);</div>
<div class="line"><a id="l00689" name="l00689"></a><span class="lineno">  689</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00690" name="l00690"></a><span class="lineno">  690</span> </div>
<div class="line"><a id="l00691" name="l00691"></a><span class="lineno">  691</span>   std::vector&lt;const TaggedObject*&gt; <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependents</a>(1);</div>
<div class="line"><a id="l00692" name="l00692"></a><span class="lineno">  692</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>[0] = <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependent1</a>;</div>
<div class="line"><a id="l00693" name="l00693"></a><span class="lineno">  693</span> </div>
<div class="line"><a id="l00694" name="l00694"></a><span class="lineno">  694</span>   AddCachedResult(<a class="code hl_class" href="classIpopt_1_1DependentResult.html">result</a>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>);</div>
<div class="line"><a id="l00695" name="l00695"></a><span class="lineno">  695</span>}</div>
</div>
<div class="line"><a id="l00696" name="l00696"></a><span class="lineno">  696</span> </div>
<div class="line"><a id="l00697" name="l00697"></a><span class="lineno">  697</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00698" data-start="{" data-end="}">
<div class="line"><a id="l00698" name="l00698"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a4ef188cd7f04c95003daa769d229cba6">  698</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a4ef188cd7f04c95003daa769d229cba6">CachedResults&lt;T&gt;::GetCachedResult1Dep</a>(</div>
<div class="line"><a id="l00699" name="l00699"></a><span class="lineno">  699</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">T</a>&amp;                  <a class="code hl_class" href="classIpopt_1_1DependentResult.html">retResult</a>,</div>
<div class="line"><a id="l00700" name="l00700"></a><span class="lineno">  700</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependent1</a></div>
<div class="line"><a id="l00701" name="l00701"></a><span class="lineno">  701</span>)</div>
<div class="line"><a id="l00702" name="l00702"></a><span class="lineno">  702</span>{</div>
<div class="line"><a id="l00703" name="l00703"></a><span class="lineno">  703</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00704" name="l00704"></a><span class="lineno">  704</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;CachedResults&lt;T&gt;::GetCachedResult1Dep&quot;</span>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dbg_verbosity</a>);</div>
<div class="line"><a id="l00705" name="l00705"></a><span class="lineno">  705</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00706" name="l00706"></a><span class="lineno">  706</span> </div>
<div class="line"><a id="l00707" name="l00707"></a><span class="lineno">  707</span>   std::vector&lt;const TaggedObject*&gt; <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependents</a>(1);</div>
<div class="line"><a id="l00708" name="l00708"></a><span class="lineno">  708</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>[0] = <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependent1</a>;</div>
<div class="line"><a id="l00709" name="l00709"></a><span class="lineno">  709</span> </div>
<div class="line"><a id="l00710" name="l00710"></a><span class="lineno">  710</span>   <span class="keywordflow">return</span> GetCachedResult(<a class="code hl_class" href="classIpopt_1_1DependentResult.html">retResult</a>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>);</div>
<div class="line"><a id="l00711" name="l00711"></a><span class="lineno">  711</span>}</div>
</div>
<div class="line"><a id="l00712" name="l00712"></a><span class="lineno">  712</span> </div>
<div class="line"><a id="l00713" name="l00713"></a><span class="lineno">  713</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00714" data-start="{" data-end="}">
<div class="line"><a id="l00714" name="l00714"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a3435d925d46d468ecd8613e260ccdf03">  714</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a3435d925d46d468ecd8613e260ccdf03">CachedResults&lt;T&gt;::AddCachedResult2Dep</a>(</div>
<div class="line"><a id="l00715" name="l00715"></a><span class="lineno">  715</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">T</a>&amp;            <a class="code hl_class" href="classIpopt_1_1DependentResult.html">result</a>,</div>
<div class="line"><a id="l00716" name="l00716"></a><span class="lineno">  716</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependent1</a>,</div>
<div class="line"><a id="l00717" name="l00717"></a><span class="lineno">  717</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependent2</a></div>
<div class="line"><a id="l00718" name="l00718"></a><span class="lineno">  718</span>)</div>
<div class="line"><a id="l00719" name="l00719"></a><span class="lineno">  719</span> </div>
<div class="line"><a id="l00720" name="l00720"></a><span class="lineno">  720</span>{</div>
<div class="line"><a id="l00721" name="l00721"></a><span class="lineno">  721</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00722" name="l00722"></a><span class="lineno">  722</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;CachedResults&lt;T&gt;::AddCachedResult2dDep&quot;</span>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dbg_verbosity</a>);</div>
<div class="line"><a id="l00723" name="l00723"></a><span class="lineno">  723</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00724" name="l00724"></a><span class="lineno">  724</span> </div>
<div class="line"><a id="l00725" name="l00725"></a><span class="lineno">  725</span>   std::vector&lt;const TaggedObject*&gt; <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependents</a>(2);</div>
<div class="line"><a id="l00726" name="l00726"></a><span class="lineno">  726</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>[0] = <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependent1</a>;</div>
<div class="line"><a id="l00727" name="l00727"></a><span class="lineno">  727</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>[1] = <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependent2</a>;</div>
<div class="line"><a id="l00728" name="l00728"></a><span class="lineno">  728</span> </div>
<div class="line"><a id="l00729" name="l00729"></a><span class="lineno">  729</span>   AddCachedResult(<a class="code hl_class" href="classIpopt_1_1DependentResult.html">result</a>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>);</div>
<div class="line"><a id="l00730" name="l00730"></a><span class="lineno">  730</span>}</div>
</div>
<div class="line"><a id="l00731" name="l00731"></a><span class="lineno">  731</span> </div>
<div class="line"><a id="l00732" name="l00732"></a><span class="lineno">  732</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00733" data-start="{" data-end="}">
<div class="line"><a id="l00733" name="l00733"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a9d30bb9b9e169149399eb08e5f9c1093">  733</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a9d30bb9b9e169149399eb08e5f9c1093">CachedResults&lt;T&gt;::GetCachedResult2Dep</a>(</div>
<div class="line"><a id="l00734" name="l00734"></a><span class="lineno">  734</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">T</a>&amp;                  <a class="code hl_class" href="classIpopt_1_1DependentResult.html">retResult</a>,</div>
<div class="line"><a id="l00735" name="l00735"></a><span class="lineno">  735</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependent1</a>,</div>
<div class="line"><a id="l00736" name="l00736"></a><span class="lineno">  736</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependent2</a></div>
<div class="line"><a id="l00737" name="l00737"></a><span class="lineno">  737</span>)</div>
<div class="line"><a id="l00738" name="l00738"></a><span class="lineno">  738</span>{</div>
<div class="line"><a id="l00739" name="l00739"></a><span class="lineno">  739</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00740" name="l00740"></a><span class="lineno">  740</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;CachedResults&lt;T&gt;::GetCachedResult2Dep&quot;</span>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dbg_verbosity</a>);</div>
<div class="line"><a id="l00741" name="l00741"></a><span class="lineno">  741</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00742" name="l00742"></a><span class="lineno">  742</span> </div>
<div class="line"><a id="l00743" name="l00743"></a><span class="lineno">  743</span>   std::vector&lt;const TaggedObject*&gt; <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependents</a>(2);</div>
<div class="line"><a id="l00744" name="l00744"></a><span class="lineno">  744</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>[0] = <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependent1</a>;</div>
<div class="line"><a id="l00745" name="l00745"></a><span class="lineno">  745</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>[1] = <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependent2</a>;</div>
<div class="line"><a id="l00746" name="l00746"></a><span class="lineno">  746</span> </div>
<div class="line"><a id="l00747" name="l00747"></a><span class="lineno">  747</span>   <span class="keywordflow">return</span> GetCachedResult(<a class="code hl_class" href="classIpopt_1_1DependentResult.html">retResult</a>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>);</div>
<div class="line"><a id="l00748" name="l00748"></a><span class="lineno">  748</span>}</div>
</div>
<div class="line"><a id="l00749" name="l00749"></a><span class="lineno">  749</span> </div>
<div class="line"><a id="l00750" name="l00750"></a><span class="lineno">  750</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00751" data-start="{" data-end="}">
<div class="line"><a id="l00751" name="l00751"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#accf76263cb1c063a27ebe1241168dcda">  751</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#accf76263cb1c063a27ebe1241168dcda">CachedResults&lt;T&gt;::AddCachedResult3Dep</a>(</div>
<div class="line"><a id="l00752" name="l00752"></a><span class="lineno">  752</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">T</a>&amp;            <a class="code hl_class" href="classIpopt_1_1DependentResult.html">result</a>,</div>
<div class="line"><a id="l00753" name="l00753"></a><span class="lineno">  753</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependent1</a>,</div>
<div class="line"><a id="l00754" name="l00754"></a><span class="lineno">  754</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependent2</a>,</div>
<div class="line"><a id="l00755" name="l00755"></a><span class="lineno">  755</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependent3</a></div>
<div class="line"><a id="l00756" name="l00756"></a><span class="lineno">  756</span>)</div>
<div class="line"><a id="l00757" name="l00757"></a><span class="lineno">  757</span>{</div>
<div class="line"><a id="l00758" name="l00758"></a><span class="lineno">  758</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00759" name="l00759"></a><span class="lineno">  759</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;CachedResults&lt;T&gt;::AddCachedResult2dDep&quot;</span>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dbg_verbosity</a>);</div>
<div class="line"><a id="l00760" name="l00760"></a><span class="lineno">  760</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00761" name="l00761"></a><span class="lineno">  761</span> </div>
<div class="line"><a id="l00762" name="l00762"></a><span class="lineno">  762</span>   std::vector&lt;const TaggedObject*&gt; <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependents</a>(3);</div>
<div class="line"><a id="l00763" name="l00763"></a><span class="lineno">  763</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>[0] = <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependent1</a>;</div>
<div class="line"><a id="l00764" name="l00764"></a><span class="lineno">  764</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>[1] = <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependent2</a>;</div>
<div class="line"><a id="l00765" name="l00765"></a><span class="lineno">  765</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>[2] = <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependent3</a>;</div>
<div class="line"><a id="l00766" name="l00766"></a><span class="lineno">  766</span> </div>
<div class="line"><a id="l00767" name="l00767"></a><span class="lineno">  767</span>   AddCachedResult(<a class="code hl_class" href="classIpopt_1_1DependentResult.html">result</a>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>);</div>
<div class="line"><a id="l00768" name="l00768"></a><span class="lineno">  768</span>}</div>
</div>
<div class="line"><a id="l00769" name="l00769"></a><span class="lineno">  769</span> </div>
<div class="line"><a id="l00770" name="l00770"></a><span class="lineno">  770</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00771" data-start="{" data-end="}">
<div class="line"><a id="l00771" name="l00771"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a6d17879794ab26aa871710aa6e459c88">  771</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a6d17879794ab26aa871710aa6e459c88">CachedResults&lt;T&gt;::GetCachedResult3Dep</a>(</div>
<div class="line"><a id="l00772" name="l00772"></a><span class="lineno">  772</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">T</a>&amp;                  <a class="code hl_class" href="classIpopt_1_1DependentResult.html">retResult</a>,</div>
<div class="line"><a id="l00773" name="l00773"></a><span class="lineno">  773</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependent1</a>,</div>
<div class="line"><a id="l00774" name="l00774"></a><span class="lineno">  774</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependent2</a>,</div>
<div class="line"><a id="l00775" name="l00775"></a><span class="lineno">  775</span>   <span class="keyword">const</span> <a class="code hl_class" href="classIpopt_1_1TaggedObject.html">TaggedObject</a>* <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependent3</a></div>
<div class="line"><a id="l00776" name="l00776"></a><span class="lineno">  776</span>)</div>
<div class="line"><a id="l00777" name="l00777"></a><span class="lineno">  777</span>{</div>
<div class="line"><a id="l00778" name="l00778"></a><span class="lineno">  778</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00779" name="l00779"></a><span class="lineno">  779</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;CachedResults&lt;T&gt;::GetCachedResult2Dep&quot;</span>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dbg_verbosity</a>);</div>
<div class="line"><a id="l00780" name="l00780"></a><span class="lineno">  780</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00781" name="l00781"></a><span class="lineno">  781</span> </div>
<div class="line"><a id="l00782" name="l00782"></a><span class="lineno">  782</span>   std::vector&lt;const TaggedObject*&gt; <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependents</a>(3);</div>
<div class="line"><a id="l00783" name="l00783"></a><span class="lineno">  783</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>[0] = <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependent1</a>;</div>
<div class="line"><a id="l00784" name="l00784"></a><span class="lineno">  784</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>[1] = <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependent2</a>;</div>
<div class="line"><a id="l00785" name="l00785"></a><span class="lineno">  785</span>   <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>[2] = <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">dependent3</a>;</div>
<div class="line"><a id="l00786" name="l00786"></a><span class="lineno">  786</span> </div>
<div class="line"><a id="l00787" name="l00787"></a><span class="lineno">  787</span>   <span class="keywordflow">return</span> GetCachedResult(<a class="code hl_class" href="classIpopt_1_1DependentResult.html">retResult</a>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>);</div>
<div class="line"><a id="l00788" name="l00788"></a><span class="lineno">  788</span>}</div>
</div>
<div class="line"><a id="l00789" name="l00789"></a><span class="lineno">  789</span> </div>
<div class="line"><a id="l00790" name="l00790"></a><span class="lineno">  790</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00791" data-start="{" data-end="}">
<div class="line"><a id="l00791" name="l00791"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a4f5dbf98deb6438dd5cef7162600c3b5">  791</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a4f5dbf98deb6438dd5cef7162600c3b5">CachedResults&lt;T&gt;::InvalidateResult</a>(</div>
<div class="line"><a id="l00792" name="l00792"></a><span class="lineno">  792</span>   <span class="keyword">const</span> std::vector&lt;const TaggedObject*&gt;&amp; <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>,</div>
<div class="line"><a id="l00793" name="l00793"></a><span class="lineno">  793</span>   <span class="keyword">const</span> std::vector&lt;Number&gt;&amp;              <a class="code hl_class" href="classIpopt_1_1DependentResult.html">scalar_dependents</a></div>
<div class="line"><a id="l00794" name="l00794"></a><span class="lineno">  794</span>)</div>
<div class="line"><a id="l00795" name="l00795"></a><span class="lineno">  795</span>{</div>
<div class="line"><a id="l00796" name="l00796"></a><span class="lineno">  796</span>   <span class="keywordflow">if</span>( !cached_results_ )</div>
<div class="line"><a id="l00797" name="l00797"></a><span class="lineno">  797</span>   {</div>
<div class="line"><a id="l00798" name="l00798"></a><span class="lineno">  798</span>      <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00799" name="l00799"></a><span class="lineno">  799</span>   }</div>
<div class="line"><a id="l00800" name="l00800"></a><span class="lineno">  800</span> </div>
<div class="line"><a id="l00801" name="l00801"></a><span class="lineno">  801</span>   CleanupInvalidatedResults();</div>
<div class="line"><a id="l00802" name="l00802"></a><span class="lineno">  802</span> </div>
<div class="line"><a id="l00803" name="l00803"></a><span class="lineno">  803</span>   <span class="keywordtype">bool</span> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">retValue</a> = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00804" name="l00804"></a><span class="lineno">  804</span>   <span class="keywordflow">for</span>( <span class="keyword">typename</span> std::list&lt;<a class="code hl_class" href="classIpopt_1_1DependentResult.html">DependentResult&lt;T&gt;</a>*&gt;<a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">::const_iterator</a> iter = cached_results_-&gt;begin(); iter != cached_results_-&gt;end(); ++iter )</div>
<div class="line"><a id="l00805" name="l00805"></a><span class="lineno">  805</span>      <span class="keywordflow">if</span>( (*iter)-&gt;DependentsIdentical(<a class="code hl_class" href="classIpopt_1_1DependentResult.html">dependents</a>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">scalar_dependents</a>) )</div>
<div class="line"><a id="l00806" name="l00806"></a><span class="lineno">  806</span>      {</div>
<div class="line"><a id="l00807" name="l00807"></a><span class="lineno">  807</span>         (*iter)-&gt;<a class="code hl_function" href="classIpopt_1_1DependentResult.html#a8289bd38cdc1588d3e49fc80441cc22e">Invalidate</a>();</div>
<div class="line"><a id="l00808" name="l00808"></a><span class="lineno">  808</span>         <a class="code hl_class" href="classIpopt_1_1DependentResult.html">retValue</a> = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00809" name="l00809"></a><span class="lineno">  809</span>         <span class="keywordflow">break</span>;</div>
<div class="line"><a id="l00810" name="l00810"></a><span class="lineno">  810</span>      }</div>
<div class="line"><a id="l00811" name="l00811"></a><span class="lineno">  811</span> </div>
<div class="line"><a id="l00812" name="l00812"></a><span class="lineno">  812</span>   <span class="keywordflow">return</span> <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">retValue</a>;</div>
<div class="line"><a id="l00813" name="l00813"></a><span class="lineno">  813</span>}</div>
</div>
<div class="line"><a id="l00814" name="l00814"></a><span class="lineno">  814</span> </div>
<div class="line"><a id="l00815" name="l00815"></a><span class="lineno">  815</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00816" data-start="{" data-end="}">
<div class="line"><a id="l00816" name="l00816"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a1382321cb2355b6a06cf77ebf3dbd9c7">  816</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a1382321cb2355b6a06cf77ebf3dbd9c7">CachedResults&lt;T&gt;::Clear</a>()</div>
<div class="line"><a id="l00817" name="l00817"></a><span class="lineno">  817</span>{</div>
<div class="line"><a id="l00818" name="l00818"></a><span class="lineno">  818</span>   <span class="keywordflow">if</span>( !cached_results_ )</div>
<div class="line"><a id="l00819" name="l00819"></a><span class="lineno">  819</span>   {</div>
<div class="line"><a id="l00820" name="l00820"></a><span class="lineno">  820</span>      <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00821" name="l00821"></a><span class="lineno">  821</span>   }</div>
<div class="line"><a id="l00822" name="l00822"></a><span class="lineno">  822</span> </div>
<div class="line"><a id="l00823" name="l00823"></a><span class="lineno">  823</span>   <span class="keywordflow">for</span>( <span class="keyword">typename</span> std::list&lt;<a class="code hl_class" href="classIpopt_1_1DependentResult.html">DependentResult&lt;T&gt;</a>*&gt;<a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">::const_iterator</a> iter = cached_results_-&gt;begin(); iter != cached_results_-&gt;end(); ++iter )</div>
<div class="line"><a id="l00824" name="l00824"></a><span class="lineno">  824</span>   {</div>
<div class="line"><a id="l00825" name="l00825"></a><span class="lineno">  825</span>      (*iter)-&gt;<a class="code hl_function" href="classIpopt_1_1DependentResult.html#a8289bd38cdc1588d3e49fc80441cc22e">Invalidate</a>();</div>
<div class="line"><a id="l00826" name="l00826"></a><span class="lineno">  826</span>   }</div>
<div class="line"><a id="l00827" name="l00827"></a><span class="lineno">  827</span> </div>
<div class="line"><a id="l00828" name="l00828"></a><span class="lineno">  828</span>   CleanupInvalidatedResults();</div>
<div class="line"><a id="l00829" name="l00829"></a><span class="lineno">  829</span>}</div>
</div>
<div class="line"><a id="l00830" name="l00830"></a><span class="lineno">  830</span> </div>
<div class="line"><a id="l00831" name="l00831"></a><span class="lineno">  831</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00832" data-start="{" data-end="}">
<div class="line"><a id="l00832" name="l00832"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a9b91e184dc7a61d7b5f980fe3e427c47">  832</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a1382321cb2355b6a06cf77ebf3dbd9c7">CachedResults&lt;T&gt;::Clear</a>(</div>
<div class="line"><a id="l00833" name="l00833"></a><span class="lineno">  833</span>   <span class="keywordtype">int</span> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">max_cache_size</a></div>
<div class="line"><a id="l00834" name="l00834"></a><span class="lineno">  834</span>)</div>
<div class="line"><a id="l00835" name="l00835"></a><span class="lineno">  835</span>{</div>
<div class="line"><a id="l00836" name="l00836"></a><span class="lineno">  836</span>   Clear();</div>
<div class="line"><a id="l00837" name="l00837"></a><span class="lineno">  837</span>   max_cache_size_ = <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">max_cache_size</a>;</div>
<div class="line"><a id="l00838" name="l00838"></a><span class="lineno">  838</span>}</div>
</div>
<div class="line"><a id="l00839" name="l00839"></a><span class="lineno">  839</span> </div>
<div class="line"><a id="l00840" name="l00840"></a><span class="lineno">  840</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00841" data-start="{" data-end="}">
<div class="line"><a id="l00841" name="l00841"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a6f65c53c87a03c3045d74fbdd1af57e5">  841</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a6f65c53c87a03c3045d74fbdd1af57e5">CachedResults&lt;T&gt;::CleanupInvalidatedResults</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00842" name="l00842"></a><span class="lineno">  842</span><span class="keyword"></span>{</div>
<div class="line"><a id="l00843" name="l00843"></a><span class="lineno">  843</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00844" name="l00844"></a><span class="lineno">  844</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;CachedResults&lt;T&gt;::CleanupInvalidatedResults&quot;</span>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dbg_verbosity</a>);</div>
<div class="line"><a id="l00845" name="l00845"></a><span class="lineno">  845</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00846" name="l00846"></a><span class="lineno">  846</span> </div>
<div class="line"><a id="l00847" name="l00847"></a><span class="lineno">  847</span>   <span class="keywordflow">if</span>( !cached_results_ )</div>
<div class="line"><a id="l00848" name="l00848"></a><span class="lineno">  848</span>   {</div>
<div class="line"><a id="l00849" name="l00849"></a><span class="lineno">  849</span>      <span class="keywordflow">return</span>;</div>
<div class="line"><a id="l00850" name="l00850"></a><span class="lineno">  850</span>   }</div>
<div class="line"><a id="l00851" name="l00851"></a><span class="lineno">  851</span> </div>
<div class="line"><a id="l00852" name="l00852"></a><span class="lineno">  852</span>   <span class="keyword">typename</span> std::list&lt;DependentResult&lt;T&gt;*&gt;<a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">::iterator</a> iter;</div>
<div class="line"><a id="l00853" name="l00853"></a><span class="lineno">  853</span>   iter = cached_results_-&gt;begin();</div>
<div class="line"><a id="l00854" name="l00854"></a><span class="lineno">  854</span>   <span class="keywordflow">while</span>( iter != cached_results_-&gt;end() )</div>
<div class="line"><a id="l00855" name="l00855"></a><span class="lineno">  855</span>   {</div>
<div class="line"><a id="l00856" name="l00856"></a><span class="lineno">  856</span>      <span class="keywordflow">if</span>( (*iter)-&gt;IsStale() )</div>
<div class="line"><a id="l00857" name="l00857"></a><span class="lineno">  857</span>      {</div>
<div class="line"><a id="l00858" name="l00858"></a><span class="lineno">  858</span>         <span class="keyword">typename</span> std::list&lt;DependentResult&lt;T&gt;*&gt;<a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">::iterator</a> <a class="code hl_class" href="classIpopt_1_1DependentResult.html">iter_to_remove</a> = iter++;</div>
<div class="line"><a id="l00859" name="l00859"></a><span class="lineno">  859</span>         <a class="code hl_class" href="classIpopt_1_1DependentResult.html">DependentResult&lt;T&gt;</a>* <a class="code hl_class" href="classIpopt_1_1DependentResult.html">result_to_delete</a> = (*iter_to_remove);</div>
<div class="line"><a id="l00860" name="l00860"></a><span class="lineno">  860</span>         cached_results_-&gt;erase(<a class="code hl_class" href="classIpopt_1_1DependentResult.html">iter_to_remove</a>);</div>
<div class="line"><a id="l00861" name="l00861"></a><span class="lineno">  861</span>         <span class="keyword">delete</span> <a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">result_to_delete</a>;</div>
<div class="line"><a id="l00862" name="l00862"></a><span class="lineno">  862</span>      }</div>
<div class="line"><a id="l00863" name="l00863"></a><span class="lineno">  863</span>      <span class="keywordflow">else</span></div>
<div class="line"><a id="l00864" name="l00864"></a><span class="lineno">  864</span>      {</div>
<div class="line"><a id="l00865" name="l00865"></a><span class="lineno">  865</span>         ++iter;</div>
<div class="line"><a id="l00866" name="l00866"></a><span class="lineno">  866</span>      }</div>
<div class="line"><a id="l00867" name="l00867"></a><span class="lineno">  867</span>   }</div>
<div class="line"><a id="l00868" name="l00868"></a><span class="lineno">  868</span>}</div>
</div>
<div class="line"><a id="l00869" name="l00869"></a><span class="lineno">  869</span> </div>
<div class="line"><a id="l00870" name="l00870"></a><span class="lineno">  870</span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="foldopen" id="foldopen00871" data-start="{" data-end="}">
<div class="line"><a id="l00871" name="l00871"></a><span class="lineno"><a class="line" href="classIpopt_1_1CachedResults.html#a2bde127abd6894d6864cc48061c4d053">  871</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classIpopt_1_1CachedResults.html#a2bde127abd6894d6864cc48061c4d053">CachedResults&lt;T&gt;::DebugPrintCachedResults</a>()<span class="keyword"> const</span></div>
<div class="line"><a id="l00872" name="l00872"></a><span class="lineno">  872</span><span class="keyword"></span>{</div>
<div class="line"><a id="l00873" name="l00873"></a><span class="lineno">  873</span><span class="preprocessor">#ifdef IP_DEBUG_CACHE</span></div>
<div class="line"><a id="l00874" name="l00874"></a><span class="lineno">  874</span>   <a class="code hl_define" href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a>(<span class="stringliteral">&quot;CachedResults&lt;T&gt;::DebugPrintCachedResults&quot;</span>, <a class="code hl_class" href="classIpopt_1_1DependentResult.html">dbg_verbosity</a>);</div>
<div class="line"><a id="l00875" name="l00875"></a><span class="lineno">  875</span>   <span class="keywordflow">if</span> (<a class="code hl_define" href="IpDebug_8hpp.html#aae2cacf79fab2061fdbe26c9165ad36b">DBG_VERBOSITY</a>() &gt;= 2 )</div>
<div class="line"><a id="l00876" name="l00876"></a><span class="lineno">  876</span>   {</div>
<div class="line"><a id="l00877" name="l00877"></a><span class="lineno">  877</span>      <span class="keywordflow">if</span> (!cached_results_)</div>
<div class="line"><a id="l00878" name="l00878"></a><span class="lineno">  878</span>      {</div>
<div class="line"><a id="l00879" name="l00879"></a><span class="lineno">  879</span>         <a class="code hl_define" href="IpDebug_8hpp.html#a40fdb0e5238b05a8134decce9cedad0f">DBG_PRINT</a>((2, <span class="stringliteral">&quot;Currentlt no cached results:\n&quot;</span>));</div>
<div class="line"><a id="l00880" name="l00880"></a><span class="lineno">  880</span>      }</div>
<div class="line"><a id="l00881" name="l00881"></a><span class="lineno">  881</span>      <span class="keywordflow">else</span></div>
<div class="line"><a id="l00882" name="l00882"></a><span class="lineno">  882</span>      {</div>
<div class="line"><a id="l00883" name="l00883"></a><span class="lineno">  883</span>         <span class="keyword">typename</span> std::list&lt; DependentResult&lt;T&gt;* &gt;<a class="code hl_function" href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">::const_iterator</a> iter;</div>
<div class="line"><a id="l00884" name="l00884"></a><span class="lineno">  884</span>         <a class="code hl_define" href="IpDebug_8hpp.html#a40fdb0e5238b05a8134decce9cedad0f">DBG_PRINT</a>((2, <span class="stringliteral">&quot;Current set of cached results:\n&quot;</span>));</div>
<div class="line"><a id="l00885" name="l00885"></a><span class="lineno">  885</span>         <span class="keywordflow">for</span> (iter = cached_results_-&gt;begin(); iter != cached_results_-&gt;end(); ++iter)</div>
<div class="line"><a id="l00886" name="l00886"></a><span class="lineno">  886</span>         {</div>
<div class="line"><a id="l00887" name="l00887"></a><span class="lineno">  887</span>            <a class="code hl_define" href="IpDebug_8hpp.html#a40fdb0e5238b05a8134decce9cedad0f">DBG_PRINT</a>((2, <span class="stringliteral">&quot;  DependentResult: %p\n&quot;</span>, (<span class="keywordtype">void</span>*)*iter));</div>
<div class="line"><a id="l00888" name="l00888"></a><span class="lineno">  888</span>         }</div>
<div class="line"><a id="l00889" name="l00889"></a><span class="lineno">  889</span>      }</div>
<div class="line"><a id="l00890" name="l00890"></a><span class="lineno">  890</span>   }</div>
<div class="line"><a id="l00891" name="l00891"></a><span class="lineno">  891</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00892" name="l00892"></a><span class="lineno">  892</span> </div>
<div class="line"><a id="l00893" name="l00893"></a><span class="lineno">  893</span>}</div>
</div>
</div>
<div class="line"><a id="l00894" name="l00894"></a><span class="lineno">  894</span> </div>
<div class="line"><a id="l00895" name="l00895"></a><span class="lineno">  895</span>} <span class="comment">// namespace Ipopt</span></div>
<div class="line"><a id="l00896" name="l00896"></a><span class="lineno">  896</span> </div>
<div class="line"><a id="l00897" name="l00897"></a><span class="lineno">  897</span><span class="preprocessor">#endif</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="ttc" id="aIpDebug_8hpp_html"><div class="ttname"><a href="IpDebug_8hpp.html">IpDebug.hpp</a></div></div>
<div class="ttc" id="aIpDebug_8hpp_html_a346733cd6806024295f8c3564071d021"><div class="ttname"><a href="IpDebug_8hpp.html#a346733cd6806024295f8c3564071d021">DBG_ASSERT</a></div><div class="ttdeci">#define DBG_ASSERT(test)</div><div class="ttdef"><b>Definition</b> <a href="IpDebug_8hpp_source.html#l00027">IpDebug.hpp:27</a></div></div>
<div class="ttc" id="aIpDebug_8hpp_html_a40fdb0e5238b05a8134decce9cedad0f"><div class="ttname"><a href="IpDebug_8hpp.html#a40fdb0e5238b05a8134decce9cedad0f">DBG_PRINT</a></div><div class="ttdeci">#define DBG_PRINT(__printf_args)</div><div class="ttdef"><b>Definition</b> <a href="IpDebug_8hpp_source.html#l00039">IpDebug.hpp:39</a></div></div>
<div class="ttc" id="aIpDebug_8hpp_html_aae2cacf79fab2061fdbe26c9165ad36b"><div class="ttname"><a href="IpDebug_8hpp.html#aae2cacf79fab2061fdbe26c9165ad36b">DBG_VERBOSITY</a></div><div class="ttdeci">#define DBG_VERBOSITY()</div><div class="ttdef"><b>Definition</b> <a href="IpDebug_8hpp_source.html#l00043">IpDebug.hpp:43</a></div></div>
<div class="ttc" id="aIpDebug_8hpp_html_abac44fd4713c03644cf925f4a1bcb22a"><div class="ttname"><a href="IpDebug_8hpp.html#abac44fd4713c03644cf925f4a1bcb22a">DBG_START_METH</a></div><div class="ttdeci">#define DBG_START_METH(__func_name, __verbose_level)</div><div class="ttdef"><b>Definition</b> <a href="IpDebug_8hpp_source.html#l00038">IpDebug.hpp:38</a></div></div>
<div class="ttc" id="aIpDebug_8hpp_html_adf5c12b1092ddcaa2e6676e91b6afcc1"><div class="ttname"><a href="IpDebug_8hpp.html#adf5c12b1092ddcaa2e6676e91b6afcc1">DBG_EXEC</a></div><div class="ttdeci">#define DBG_EXEC(__verbosity, __cmd)</div><div class="ttdef"><b>Definition</b> <a href="IpDebug_8hpp_source.html#l00042">IpDebug.hpp:42</a></div></div>
<div class="ttc" id="aIpObserver_8hpp_html"><div class="ttname"><a href="IpObserver_8hpp.html">IpObserver.hpp</a></div></div>
<div class="ttc" id="aIpTaggedObject_8hpp_html"><div class="ttname"><a href="IpTaggedObject_8hpp.html">IpTaggedObject.hpp</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html"><div class="ttname"><a href="classIpopt_1_1CachedResults.html">Ipopt::CachedResults</a></div><div class="ttdoc">Templated class for Cached Results.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00068">IpCachedResults.hpp:69</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a02da3d9dba67c2c1393e127256a8ce75"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a02da3d9dba67c2c1393e127256a8ce75">Ipopt::CachedResults::CachedResults</a></div><div class="ttdeci">CachedResults()</div><div class="ttdoc">Default Constructor.</div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a094616862992ae284450b1feb074cfcc"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a094616862992ae284450b1feb074cfcc">Ipopt::CachedResults::operator=</a></div><div class="ttdeci">void operator=(const CachedResults &amp;)</div><div class="ttdoc">Default Assignment Operator.</div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a0ead55fd598e27c70f0b1c3a06e7cd06"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a0ead55fd598e27c70f0b1c3a06e7cd06">Ipopt::CachedResults::cached_results_</a></div><div class="ttdeci">std::list&lt; DependentResult&lt; T &gt; * &gt; * cached_results_</div><div class="ttdoc">list of currently cached results.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00283">IpCachedResults.hpp:283</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a1382321cb2355b6a06cf77ebf3dbd9c7"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a1382321cb2355b6a06cf77ebf3dbd9c7">Ipopt::CachedResults::Clear</a></div><div class="ttdeci">void Clear()</div><div class="ttdoc">Invalidates all cached results.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00816">IpCachedResults.hpp:816</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a2bde127abd6894d6864cc48061c4d053"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a2bde127abd6894d6864cc48061c4d053">Ipopt::CachedResults::DebugPrintCachedResults</a></div><div class="ttdeci">void DebugPrintCachedResults() const</div><div class="ttdoc">Print list of currently cached results.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00871">IpCachedResults.hpp:871</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a3435d925d46d468ecd8613e260ccdf03"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a3435d925d46d468ecd8613e260ccdf03">Ipopt::CachedResults::AddCachedResult2Dep</a></div><div class="ttdeci">void AddCachedResult2Dep(const T &amp;result, const TaggedObject *dependent1, const TaggedObject *dependent2)</div><div class="ttdoc">Method for adding a result to the cache, proving two dependencies as a TaggedObject explicitly.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00714">IpCachedResults.hpp:714</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a36996b6361fa40dad91cc3b747648fc6"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a36996b6361fa40dad91cc3b747648fc6">Ipopt::CachedResults::AddCachedResult1Dep</a></div><div class="ttdeci">void AddCachedResult1Dep(const T &amp;result, const TaggedObject *dependent1)</div><div class="ttdoc">Method for adding a result to the cache, proving one dependency as a TaggedObject explicitly.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00682">IpCachedResults.hpp:682</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a40be0bcca6bd2cad35c5e1865f96188f"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a40be0bcca6bd2cad35c5e1865f96188f">Ipopt::CachedResults::GetCachedResult2Dep</a></div><div class="ttdeci">bool GetCachedResult2Dep(T &amp;retResult, const TaggedObject &amp;dependent1, const TaggedObject &amp;dependent2)</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00189">IpCachedResults.hpp:189</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a4ef188cd7f04c95003daa769d229cba6"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a4ef188cd7f04c95003daa769d229cba6">Ipopt::CachedResults::GetCachedResult1Dep</a></div><div class="ttdeci">bool GetCachedResult1Dep(T &amp;retResult, const TaggedObject *dependent1)</div><div class="ttdoc">Method for retrieving a cached result, proving one dependency as a TaggedObject explicitly.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00698">IpCachedResults.hpp:698</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a4f5dbf98deb6438dd5cef7162600c3b5"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a4f5dbf98deb6438dd5cef7162600c3b5">Ipopt::CachedResults::InvalidateResult</a></div><div class="ttdeci">bool InvalidateResult(const std::vector&lt; const TaggedObject * &gt; &amp;dependents, const std::vector&lt; Number &gt; &amp;scalar_dependents)</div><div class="ttdoc">Invalidates the result for given dependencies.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00791">IpCachedResults.hpp:791</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a52bca50f280a276ec29d37263af06dc1"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a52bca50f280a276ec29d37263af06dc1">Ipopt::CachedResults::CachedResults</a></div><div class="ttdeci">CachedResults(const CachedResults &amp;)</div><div class="ttdoc">Copy Constructor.</div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a628f2f640edad55e12865df6033d5ee5"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a628f2f640edad55e12865df6033d5ee5">Ipopt::CachedResults::GetCachedResult</a></div><div class="ttdeci">bool GetCachedResult(T &amp;retResult, const std::vector&lt; const TaggedObject * &gt; &amp;dependents) const</div><div class="ttdoc">Method for retrieving a cached result, providing only a std::vector of TaggedObjects.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00672">IpCachedResults.hpp:672</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a64fdbc021c61cc1aafb4f6895fe620fd"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a64fdbc021c61cc1aafb4f6895fe620fd">Ipopt::CachedResults::GetCachedResult</a></div><div class="ttdeci">bool GetCachedResult(T &amp;retResult, const std::vector&lt; const TaggedObject * &gt; &amp;dependents, const std::vector&lt; Number &gt; &amp;scalar_dependents) const</div><div class="ttdoc">Generic method for retrieving a cached results, given the dependencies as a std::vector of TaggesObje...</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00638">IpCachedResults.hpp:638</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a6a0618748095bc4767ba008aebab1633"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a6a0618748095bc4767ba008aebab1633">Ipopt::CachedResults::AddCachedResult3Dep</a></div><div class="ttdeci">void AddCachedResult3Dep(const T &amp;result, const TaggedObject &amp;dependent1, const TaggedObject &amp;dependent2, const TaggedObject &amp;dependent3)</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00224">IpCachedResults.hpp:224</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a6d17879794ab26aa871710aa6e459c88"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a6d17879794ab26aa871710aa6e459c88">Ipopt::CachedResults::GetCachedResult3Dep</a></div><div class="ttdeci">bool GetCachedResult3Dep(T &amp;retResult, const TaggedObject *dependent1, const TaggedObject *dependent2, const TaggedObject *dependent3)</div><div class="ttdoc">Method for retrieving a cached result, proving three dependencies as a TaggedObject explicitly.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00771">IpCachedResults.hpp:771</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a6f65c53c87a03c3045d74fbdd1af57e5"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a6f65c53c87a03c3045d74fbdd1af57e5">Ipopt::CachedResults::CleanupInvalidatedResults</a></div><div class="ttdeci">void CleanupInvalidatedResults() const</div><div class="ttdoc">internal method for removing stale DependentResults from the list</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00841">IpCachedResults.hpp:841</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a88113643817cd0d0082ec183821bf09d"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a88113643817cd0d0082ec183821bf09d">Ipopt::CachedResults::AddCachedResult</a></div><div class="ttdeci">void AddCachedResult(const T &amp;result, const std::vector&lt; const TaggedObject * &gt; &amp;dependents)</div><div class="ttdoc">Method for adding a result, providing only a std::vector of TaggedObjects.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00628">IpCachedResults.hpp:628</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a910a723286635abe7907bde3ae5c6eb2"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a910a723286635abe7907bde3ae5c6eb2">Ipopt::CachedResults::max_cache_size_</a></div><div class="ttdeci">int max_cache_size_</div><div class="ttdoc">maximum number of cached results</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00280">IpCachedResults.hpp:280</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a95da391d00cebb8bd60fd9bafd1b301f"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a95da391d00cebb8bd60fd9bafd1b301f">Ipopt::CachedResults::CachedResults</a></div><div class="ttdeci">CachedResults(int max_cache_size)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00549">IpCachedResults.hpp:549</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a9b91e184dc7a61d7b5f980fe3e427c47"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a9b91e184dc7a61d7b5f980fe3e427c47">Ipopt::CachedResults::Clear</a></div><div class="ttdeci">void Clear(int max_cache_size)</div><div class="ttdoc">Invalidate all cached results and changes max_cache_size.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00832">IpCachedResults.hpp:832</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_a9d30bb9b9e169149399eb08e5f9c1093"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#a9d30bb9b9e169149399eb08e5f9c1093">Ipopt::CachedResults::GetCachedResult2Dep</a></div><div class="ttdeci">bool GetCachedResult2Dep(T &amp;retResult, const TaggedObject *dependent1, const TaggedObject *dependent2)</div><div class="ttdoc">Method for retrieving a cached result, proving two dependencies as a TaggedObject explicitly.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00733">IpCachedResults.hpp:733</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_ab5e2f2a7463c31a5653e222c8cb463ef"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#ab5e2f2a7463c31a5653e222c8cb463ef">Ipopt::CachedResults::~CachedResults</a></div><div class="ttdeci">virtual ~CachedResults()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00562">IpCachedResults.hpp:562</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_ab7d93e6bf4d2bf76f38391dbe766bdc9"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#ab7d93e6bf4d2bf76f38391dbe766bdc9">Ipopt::CachedResults::AddCachedResult1Dep</a></div><div class="ttdeci">void AddCachedResult1Dep(const T &amp;result, const TaggedObject &amp;dependent1)</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00207">IpCachedResults.hpp:207</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_accf76263cb1c063a27ebe1241168dcda"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#accf76263cb1c063a27ebe1241168dcda">Ipopt::CachedResults::AddCachedResult3Dep</a></div><div class="ttdeci">void AddCachedResult3Dep(const T &amp;result, const TaggedObject *dependent1, const TaggedObject *dependent2, const TaggedObject *dependent3)</div><div class="ttdoc">Method for adding a result to the cache, proving three dependencies as a TaggedObject explicitly.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00751">IpCachedResults.hpp:751</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_ade3ae40c720febaa2d66481c5a9da548"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#ade3ae40c720febaa2d66481c5a9da548">Ipopt::CachedResults::GetCachedResult1Dep</a></div><div class="ttdeci">bool GetCachedResult1Dep(T &amp;retResult, const TaggedObject &amp;dependent1)</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00181">IpCachedResults.hpp:181</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_ae9cc797fa9d398454c758079899eb863"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#ae9cc797fa9d398454c758079899eb863">Ipopt::CachedResults::GetCachedResult3Dep</a></div><div class="ttdeci">bool GetCachedResult3Dep(T &amp;retResult, const TaggedObject &amp;dependent1, const TaggedObject &amp;dependent2, const TaggedObject &amp;dependent3)</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00198">IpCachedResults.hpp:198</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_af39887ebf63f7dd3d4d651179fb9d007"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#af39887ebf63f7dd3d4d651179fb9d007">Ipopt::CachedResults::AddCachedResult2Dep</a></div><div class="ttdeci">void AddCachedResult2Dep(const T &amp;result, const TaggedObject &amp;dependent1, const TaggedObject &amp;dependent2)</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00215">IpCachedResults.hpp:215</a></div></div>
<div class="ttc" id="aclassIpopt_1_1CachedResults_html_afba0afd9676949945bbedfee4d777078"><div class="ttname"><a href="classIpopt_1_1CachedResults.html#afba0afd9676949945bbedfee4d777078">Ipopt::CachedResults::AddCachedResult</a></div><div class="ttdeci">void AddCachedResult(const T &amp;result, const std::vector&lt; const TaggedObject * &gt; &amp;dependents, const std::vector&lt; Number &gt; &amp;scalar_dependents)</div><div class="ttdoc">Generic method for adding a result to the cache, given a std::vector of TaggesObjects and a std::vect...</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00587">IpCachedResults.hpp:587</a></div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html"><div class="ttname"><a href="classIpopt_1_1DependentResult.html">Ipopt::DependentResult</a></div><div class="ttdoc">Templated class which stores one entry for the CachedResult class.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00301">IpCachedResults.hpp:302</a></div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html_a180e1639146e0b12b5b715a7e29ccc97"><div class="ttname"><a href="classIpopt_1_1DependentResult.html#a180e1639146e0b12b5b715a7e29ccc97">Ipopt::DependentResult::DebugPrint</a></div><div class="ttdeci">void DebugPrint() const</div><div class="ttdoc">Print information about this DependentResults.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00540">IpCachedResults.hpp:540</a></div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html_a1c443217396c7f2deafe4d94be51b389"><div class="ttname"><a href="classIpopt_1_1DependentResult.html#a1c443217396c7f2deafe4d94be51b389">Ipopt::DependentResult::GetResult</a></div><div class="ttdeci">const T &amp; GetResult() const</div><div class="ttdoc">Returns the cached result.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00529">IpCachedResults.hpp:529</a></div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html_a1d82971435f77d9285ab25dbd379b7d4"><div class="ttname"><a href="classIpopt_1_1DependentResult.html#a1d82971435f77d9285ab25dbd379b7d4">Ipopt::DependentResult::DependentResult</a></div><div class="ttdeci">DependentResult()</div><div class="ttdoc">Default Constructor.</div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html_a375cc4740d1ebf06e9f4a69be848e7c2"><div class="ttname"><a href="classIpopt_1_1DependentResult.html#a375cc4740d1ebf06e9f4a69be848e7c2">Ipopt::DependentResult::DependentResult</a></div><div class="ttdeci">DependentResult(const DependentResult &amp;)</div><div class="ttdoc">Copy Constructor.</div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html_a3996096057cb6ca687db56ff0a9cd778"><div class="ttname"><a href="classIpopt_1_1DependentResult.html#a3996096057cb6ca687db56ff0a9cd778">Ipopt::DependentResult::dependent_tags_</a></div><div class="ttdeci">std::vector&lt; TaggedObject::Tag &gt; dependent_tags_</div><div class="ttdoc">Dependencies in form of TaggedObjects.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00396">IpCachedResults.hpp:396</a></div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html_a4095cad07fe069984328506b30b3821c"><div class="ttname"><a href="classIpopt_1_1DependentResult.html#a4095cad07fe069984328506b30b3821c">Ipopt::DependentResult::result_</a></div><div class="ttdeci">const T result_</div><div class="ttdoc">The value of the dependent results.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00394">IpCachedResults.hpp:394</a></div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html_a65cb6be9d013f4427f511ed3fa530571"><div class="ttname"><a href="classIpopt_1_1DependentResult.html#a65cb6be9d013f4427f511ed3fa530571">Ipopt::DependentResult::stale_</a></div><div class="ttdeci">bool stale_</div><div class="ttdoc">Flag indicating, if the cached result is still valid.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00392">IpCachedResults.hpp:392</a></div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html_a6fc3b55909f5be70be2efcba2ed86be0"><div class="ttname"><a href="classIpopt_1_1DependentResult.html#a6fc3b55909f5be70be2efcba2ed86be0">Ipopt::DependentResult::scalar_dependents_</a></div><div class="ttdeci">std::vector&lt; Number &gt; scalar_dependents_</div><div class="ttdoc">Dependencies in form a Numbers.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00398">IpCachedResults.hpp:398</a></div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html_a7c214391027ab63ef7aa2aea7e013d6c"><div class="ttname"><a href="classIpopt_1_1DependentResult.html#a7c214391027ab63ef7aa2aea7e013d6c">Ipopt::DependentResult::ReceiveNotification</a></div><div class="ttdeci">virtual void ReceiveNotification(NotifyType notify_type, const Subject *subject)</div><div class="ttdoc">Notification Receiver Method.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00470">IpCachedResults.hpp:470</a></div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html_a8289bd38cdc1588d3e49fc80441cc22e"><div class="ttname"><a href="classIpopt_1_1DependentResult.html#a8289bd38cdc1588d3e49fc80441cc22e">Ipopt::DependentResult::Invalidate</a></div><div class="ttdeci">void Invalidate()</div><div class="ttdoc">Invalidates the cached result.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00464">IpCachedResults.hpp:464</a></div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html_ab7f3a50d252a7e015083bfbc22e16de2"><div class="ttname"><a href="classIpopt_1_1DependentResult.html#ab7f3a50d252a7e015083bfbc22e16de2">Ipopt::DependentResult::DependentsIdentical</a></div><div class="ttdeci">bool DependentsIdentical(const std::vector&lt; const TaggedObject * &gt; &amp;dependents, const std::vector&lt; Number &gt; &amp;scalar_dependents) const</div><div class="ttdoc">This method returns true if the dependencies provided to this function are identical to the ones stor...</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00488">IpCachedResults.hpp:488</a></div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html_adf6edb2e718594abf0f0b72fde36e263"><div class="ttname"><a href="classIpopt_1_1DependentResult.html#adf6edb2e718594abf0f0b72fde36e263">Ipopt::DependentResult::~DependentResult</a></div><div class="ttdeci">~DependentResult()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00446">IpCachedResults.hpp:446</a></div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html_ae10949b00ea6d500fa1287cc8b4822ee"><div class="ttname"><a href="classIpopt_1_1DependentResult.html#ae10949b00ea6d500fa1287cc8b4822ee">Ipopt::DependentResult::IsStale</a></div><div class="ttdeci">bool IsStale() const</div><div class="ttdoc">Indicates, whether the DependentResult is no longer valid.</div><div class="ttdef"><b>Definition</b> <a href="IpCachedResults_8hpp_source.html#l00458">IpCachedResults.hpp:458</a></div></div>
<div class="ttc" id="aclassIpopt_1_1DependentResult_html_af97c032881a14cfdcd3e27544b754198"><div class="ttname"><a href="classIpopt_1_1DependentResult.html#af97c032881a14cfdcd3e27544b754198">Ipopt::DependentResult::operator=</a></div><div class="ttdeci">void operator=(const DependentResult &amp;)</div><div class="ttdoc">Default Assignment Operator.</div></div>
<div class="ttc" id="aclassIpopt_1_1Observer_html"><div class="ttname"><a href="classIpopt_1_1Observer.html">Ipopt::Observer</a></div><div class="ttdoc">Slight Variation of the Observer Design Pattern.</div><div class="ttdef"><b>Definition</b> <a href="IpObserver_8hpp_source.html#l00038">IpObserver.hpp:39</a></div></div>
<div class="ttc" id="aclassIpopt_1_1Observer_html_a828a9e0833e87e84bef75d05bf0a99b8"><div class="ttname"><a href="classIpopt_1_1Observer.html#a828a9e0833e87e84bef75d05bf0a99b8">Ipopt::Observer::NotifyType</a></div><div class="ttdeci">NotifyType</div><div class="ttdoc">Enumeration specifying the type of notification.</div><div class="ttdef"><b>Definition</b> <a href="IpObserver_8hpp_source.html#l00057">IpObserver.hpp:58</a></div></div>
<div class="ttc" id="aclassIpopt_1_1Observer_html_a828a9e0833e87e84bef75d05bf0a99b8a54af38bcdf18596ba847cbacd9232614"><div class="ttname"><a href="classIpopt_1_1Observer.html#a828a9e0833e87e84bef75d05bf0a99b8a54af38bcdf18596ba847cbacd9232614">Ipopt::Observer::NT_Changed</a></div><div class="ttdeci">@ NT_Changed</div><div class="ttdef"><b>Definition</b> <a href="IpObserver_8hpp_source.html#l00062">IpObserver.hpp:61</a></div></div>
<div class="ttc" id="aclassIpopt_1_1Observer_html_ad8a27925a917ba926d713ceaac3efd7d"><div class="ttname"><a href="classIpopt_1_1Observer.html#ad8a27925a917ba926d713ceaac3efd7d">Ipopt::Observer::RequestAttach</a></div><div class="ttdeci">void RequestAttach(NotifyType notify_type, const Subject *subject)</div><div class="ttdoc">Derived classes should call this method to request an &quot;Attach&quot; to a Subject.</div><div class="ttdef"><b>Definition</b> <a href="IpObserver_8hpp_source.html#l00254">IpObserver.hpp:254</a></div></div>
<div class="ttc" id="aclassIpopt_1_1Subject_html"><div class="ttname"><a href="classIpopt_1_1Subject.html">Ipopt::Subject</a></div><div class="ttdoc">Slight Variation of the Observer Design Pattern (Subject part).</div><div class="ttdef"><b>Definition</b> <a href="IpObserver_8hpp_source.html#l00149">IpObserver.hpp:150</a></div></div>
<div class="ttc" id="aclassIpopt_1_1TaggedObject_html"><div class="ttname"><a href="classIpopt_1_1TaggedObject.html">Ipopt::TaggedObject</a></div><div class="ttdoc">TaggedObject class.</div><div class="ttdef"><b>Definition</b> <a href="IpTaggedObject_8hpp_source.html#l00057">IpTaggedObject.hpp:58</a></div></div>
<div class="ttc" id="anamespaceIpopt_html"><div class="ttname"><a href="namespaceIpopt.html">Ipopt</a></div><div class="ttdoc">This file contains a base class for all exceptions and a set of macros to help with exceptions.</div><div class="ttdef"><b>Definition</b> <a href="IpInexactAlgBuilder_8hpp_source.html#l00013">IpInexactAlgBuilder.hpp:14</a></div></div>
<div class="ttc" id="anamespaceIpopt_html_a5a4a27f325033a0e5d85a4ebc4038b57"><div class="ttname"><a href="namespaceIpopt.html#a5a4a27f325033a0e5d85a4ebc4038b57">Ipopt::Index</a></div><div class="ttdeci">ipindex Index</div><div class="ttdoc">Type of all indices of vectors, matrices etc.</div><div class="ttdef"><b>Definition</b> <a href="IpTypes_8hpp_source.html#l00020">IpTypes.hpp:20</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
</body>
</html>
